mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Added v-param to portal base URL in Offers-X (#19166)
no issue - fixed the double `/` slash that's parsing the href url. - also added a v-param.
This commit is contained in:
parent
5acd8116e2
commit
adace14beb
@ -31,9 +31,11 @@ export const getOfferPortalPreviewUrl = (overrides:offerPortalPreviewUrlTypes, b
|
|||||||
tierId
|
tierId
|
||||||
} = overrides;
|
} = overrides;
|
||||||
|
|
||||||
const portalBase = '/#/portal/preview/offer';
|
baseUrl = baseUrl.replace(/\/$/, '');
|
||||||
|
const portalBase = '/?v=modal-portal-offer#/portal/preview/offer';
|
||||||
const settingsParam = new URLSearchParams();
|
const settingsParam = new URLSearchParams();
|
||||||
|
|
||||||
|
settingsParam.append('disableBackground', 'false');
|
||||||
settingsParam.append('name', encodeURIComponent(name));
|
settingsParam.append('name', encodeURIComponent(name));
|
||||||
settingsParam.append('code', encodeURIComponent(code));
|
settingsParam.append('code', encodeURIComponent(code));
|
||||||
settingsParam.append('display_title', encodeURIComponent(displayTitle));
|
settingsParam.append('display_title', encodeURIComponent(displayTitle));
|
||||||
|
Loading…
Reference in New Issue
Block a user