mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-23 03:28:11 +00:00
fix: use full route path for casting-player navigation
This commit is contained in:
@@ -132,8 +132,12 @@ export function Chromecast({
|
||||
currentItemId: mediaStatus?.currentItemId,
|
||||
castDevice: castDevice?.friendlyName,
|
||||
});
|
||||
if (mediaStatus?.currentItemId) router.push("/casting-player");
|
||||
else CastContext.showCastDialog();
|
||||
if (mediaStatus?.currentItemId) {
|
||||
console.log("Navigating to: /(auth)/casting-player");
|
||||
router.push("/(auth)/casting-player");
|
||||
} else {
|
||||
CastContext.showCastDialog();
|
||||
}
|
||||
}}
|
||||
{...props}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user