File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
mfes/content/src/components/Content Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments