Skip to content

Router fails to load view when using ./route.tsx and ./(folder)/index.tsx combination #5304

@y-nk

Description

@y-nk

Which project does this relate to?

Router

Describe the bug

I'm trying to make navigation aware tab with root level to match the 1st tab. In order to keep things nice and tidy, i went for:

routes/
  tabs/
    (tab1)/index.tsx
    tab2/index.tsx
    route.tsx // ← top level tab navigation

when doing so, (tab1)/index.tsx is never loaded.

Your Example Website or App

https://stackblitz.com/edit/github-1pegkpfq-qja16boq

Steps to Reproduce the Bug or Issue

  1. open the stackblitz
  2. click in tabs on the top nav

url should be /tabs and (tab1)/index.tsx should not be visible.

Expected behavior

As a user, I expected the expected behavior but i am seeing nothing.

Screenshots or Videos

No response

Platform

Latest (as per provided stackblitz)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions