From d17c620b654936a44da8f1f2dfa9c9f21c435d6b Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Mon, 29 Jun 2026 15:56:49 +0200 Subject: [PATCH] fix(tv): navigate into library from home "See All" button The TV home "See All" card used a fully-qualified cross-tab path (/(auth)/(tabs)/(libraries)/[libraryId]). With native bottom tabs this only switches to the libraries tab and drops the nested screen push, landing on the libraries index instead of the library detail. Use the relative "/[libraryId]" pathname (same as getItemNavigation) so the library detail is pushed correctly with the DateCreated/Descending sort params applied. Claude-Session: https://claude.ai/code/session_016Hhu5DruGLPhdP4LAoy1Xd --- components/home/InfiniteScrollingCollectionList.tv.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/home/InfiniteScrollingCollectionList.tv.tsx b/components/home/InfiniteScrollingCollectionList.tv.tsx index 23dd977f..346e9c0d 100644 --- a/components/home/InfiniteScrollingCollectionList.tv.tsx +++ b/components/home/InfiniteScrollingCollectionList.tv.tsx @@ -201,8 +201,12 @@ export const InfiniteScrollingCollectionList: React.FC = ({ const handleSeeAllPress = useCallback(() => { if (!parentId) return; + // Use the relative "/[libraryId]" pathname (same as getItemNavigation) so the + // library detail is pushed within the current tab's stack. The fully-qualified + // "/(auth)/(tabs)/(libraries)/[libraryId]" path is a cross-tab navigation that + // only switches to the libraries tab and drops the nested screen push. router.push({ - pathname: "/(auth)/(tabs)/(libraries)/[libraryId]", + pathname: "/[libraryId]", params: { libraryId: parentId, sortBy: SortByOption.DateCreated,