fix: use full route path for casting-player navigation

This commit is contained in:
Uruk
2026-01-20 19:07:15 +01:00
parent eaa0ca324d
commit f728959f1b

View File

@@ -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}
>