Skip to content

[Bug]: Relative navigation issue while navigating from "index" route: ".." doesn't works, I must use "../.." to go back #8350

@Gryndii

Description

@Gryndii

What version of React Router are you using?

6.0.2

Steps to Reproduce

<Some other routes>
....
<Route path='/pages'>
    <Route index element={<Pages />} />

    <Route path=':pageId' element={<Item />} />              
  </Route>
  

Navigation via '..' from Pages with "index" doesn't works but it is ok for Item
I should use '../..' for the same result as '..'

Expected Behavior

Should navigate level up via '..' from index route
And it would be nice to have option with nested routes that is used only to create url hierarchy for relative navigation usage, but without children and parrents ui rendering

Actual Behavior

doesnt navigate from index page via '..'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions