fix(Player): replace history entry

- fix for the navigation
This commit is contained in:
Timothy Z. 2025-05-02 19:55:09 +03:00
parent 17312f64fd
commit b51791baa0

View file

@ -106,11 +106,11 @@ const Player = ({ urlParams, queryParams }) => {
const handleNextVideoNavigation = React.useCallback((deepLinks) => { const handleNextVideoNavigation = React.useCallback((deepLinks) => {
if (deepLinks.player) { if (deepLinks.player) {
isNavigating.current = true; isNavigating.current = true;
window.location.href = deepLinks.player; window.location.replace(deepLinks.player);
return true; return true;
} else if (deepLinks.metaDetailsStreams) { } else if (deepLinks.metaDetailsStreams) {
isNavigating.current = true; isNavigating.current = true;
window.location.href = deepLinks.metaDetailsStreams; window.location.replace(deepLinks.metaDetailsStreams);
return true; return true;
} }
return false; return false;