Skip to content

Commit

Permalink
MWPW-167263 [MEP] Error if a page with undefined promo uses mep param (
Browse files Browse the repository at this point in the history
…#3632)

add question mark
  • Loading branch information
vgoodric authored Feb 6, 2025
1 parent bcd4d2e commit 191dd6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/features/personalization/personalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ export const combineMepSources = async (persEnabled, promoEnabled, mepParam) =>
if (mepParam && mepParam !== 'off') {
const persManifestPaths = persManifests.map((manifest) => {
const { manifestPath } = manifest;
if (manifestPath.startsWith('/')) return manifestPath;
if (manifestPath?.startsWith('/')) return manifestPath;
try {
const url = new URL(manifestPath);
return url.pathname;
Expand Down

0 comments on commit 191dd6b

Please sign in to comment.