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
This commit is contained in:
Fredrik Burmester
2026-06-29 15:56:49 +02:00
parent cc0007926d
commit d17c620b65

View File

@@ -201,8 +201,12 @@ export const InfiniteScrollingCollectionList: React.FC<Props> = ({
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,