mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Updated portal preview iframe url
no issue - Updates url to load portal preview to use more specific path by appending `/preview` in hash path - Allows portal script to validate preview mode easily instead of guessing based on query string
This commit is contained in:
parent
3b78973a21
commit
bb53379eb1
@ -72,7 +72,7 @@ export default ModalComponent.extend({
|
||||
|
||||
portalPreviewUrl: computed('selectedButtonStyle', 'buttonIcon', 'signupButtonText', 'page', 'isFreeChecked', 'isMonthlyChecked', 'isYearlyChecked', 'settings.{portalName,portalButton,accentColor}', function () {
|
||||
const baseUrl = this.config.get('blogUrl');
|
||||
const portalBase = '/#/portal';
|
||||
const portalBase = '/#/portal/preview';
|
||||
const settingsParam = new URLSearchParams();
|
||||
settingsParam.append('button', this.settings.get('portalButton'));
|
||||
settingsParam.append('name', this.settings.get('portalName'));
|
||||
|
Loading…
Reference in New Issue
Block a user