Skip to content

loading subroute in conjunction with equilevel index route produce incorrect entries in the browser history #282

@azhiv

Description

@azhiv

Checkout this routes structure:
Screenshot 2024-01-22 at 17 32 28

When I navigate from the root app route down to Project down to Store, then back up to Project and finally find myself on the app route again, I would expect this full path reflected in the browser history. However, this is what I see there:

Screenshot 2024-01-22 at 17 35 03

Here's how the picture starts looking different (and correct) when I delete the loading.hbs subroute highlighted green in the first screenshot:
Screenshot 2024-01-22 at 17 37 39

I can also confirm that deleting the index subroute (without touching the loading one) also produces the correct history:
Screenshot 2024-01-22 at 17 43 39

So to conclude, having both index and loading subroutes make the framework generate incorrect entries in the browser history while removing either of them makes things look correct. Here's the reproduction repo.

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