Skip to content

hash history url is not parsed correctly with query params #969

@sirpy

Description

@sirpy

on react router if you initially go to http://localhost/?queryparam=x
then you will be redirect to http://localhost/?queryparam=x#/
then if you call useLocation the location will not have the queryparam
but if you go to http://localhost/#/?queryparam=x then location will be correct.
window.location is correct in both cases, but useLocation isn't

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