mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +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
|
||||
} = overrides;
|
||||
|
||||
const portalBase = '/#/portal/preview/offer';
|
||||
baseUrl = baseUrl.replace(/\/$/, '');
|
||||
const portalBase = '/?v=modal-portal-offer#/portal/preview/offer';
|
||||
const settingsParam = new URLSearchParams();
|
||||
|
||||
settingsParam.append('disableBackground', 'false');
|
||||
settingsParam.append('name', encodeURIComponent(name));
|
||||
settingsParam.append('code', encodeURIComponent(code));
|
||||
settingsParam.append('display_title', encodeURIComponent(displayTitle));
|
||||
|
Loading…
Reference in New Issue
Block a user