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:
Ronald Langeveld 2023-11-29 10:02:25 +02:00 committed by GitHub
parent 5acd8116e2
commit adace14beb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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