From 9a74bb8030427fb5ee7ad87b6d235f090699eb5b Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Sun, 17 Mar 2024 18:02:36 -0400 Subject: [PATCH] Fix direct links on flix page --- src/pages/TopFlix.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/TopFlix.tsx b/src/pages/TopFlix.tsx index 550aa3bc..d0d03e4e 100644 --- a/src/pages/TopFlix.tsx +++ b/src/pages/TopFlix.tsx @@ -43,12 +43,12 @@ function isShowOrMovie(tmdbFullId: string): "series" | "movie" | "unknown" { function directLinkToContent(tmdbFullId: string) { if (isShowOrMovie(tmdbFullId) === "series") { - return `${window.location.pathname}#/media/tmdb-movie-${ + return `/media/tmdb-tv-${tmdbFullId.split("-")[1]}#/media/tmdb-tv-${ tmdbFullId.split("-")[1] }`; } if (isShowOrMovie(tmdbFullId) === "movie") { - return `${window.location.pathname}#/media/tmdb-tv-${ + return `/media/tmdb-movie-${tmdbFullId.split("-")[1]}#/media/tmdb-movie-${ tmdbFullId.split("-")[1] }`; }