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 3b78973a21
commit bb53379eb1

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