Skip to content

Updating the URL directly in the browser doesn't affect React Router #22

@kartiklad

Description

@kartiklad

I have a very weird issue. I'm not sure if this is expected behaviour or a bug.

Assume that we are on route /example/2 and I change the url of the browser to point to /example. The page reloads but the route loaded is still /example/2

My guess is the redux state store in the Local storage forces the previous route to be reloaded since the route change wasn't triggered from the page itself but the browser url. But I thought this would be handled by the universal routing.

What am I missing here? is there any way I can solve this problem?

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