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:
Rish 2020-07-23 21:03:31 +05:30
parent dea7a3da03
commit fd5794cde9
1 changed files with 1 additions and 1 deletions

View File

@ -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'));