mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-30 09:32:50 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user