Skip to content

Commit 8c31176

Browse files
update pr
1 parent 02510b4 commit 8c31176

File tree

1 file changed

+5
-2
lines changed
  • mfes/content/src/components/Content

1 file changed

+5
-2
lines changed

mfes/content/src/components/Content/List.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,17 +653,20 @@ export default function Content(props: Readonly<ContentProps>) {
653653
})
654654
);
655655
persistFilters(localFilters);
656+
657+
const activeLink = window.location.pathname + window.location.search;
658+
656659
if (propData?.handleCardClick) {
657660
propData.handleCardClick(content, e, rowNumber);
658661
} else if (SUPPORTED_MIME_TYPES.includes(content?.mimeType)) {
659662
router.push(
660663
`${props?._config?.contentBaseUrl ?? ''}/player/${content?.identifier
661-
}?activeLink=${window.location.pathname + window.location.search}`
664+
}?activeLink=${encodeURIComponent(activeLink)}`
662665
);
663666
} else {
664667
router.push(
665668
`${props?._config?.contentBaseUrl ?? ''}/content-details/${content?.identifier
666-
}?activeLink=${window.location.pathname + window.location.search}`
669+
}?activeLink=${encodeURIComponent(activeLink)}`
667670
);
668671
}
669672
} catch (error) {

0 commit comments

Comments
 (0)