You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using useBasename together with react-router, initial location that matches basename exactly results in location='' which cannot be matched by react-router to any route. E.g:
Entering URL /basename in browser address bar results in Warning: Location "" did not match any routes
Not sure whether issue is with react-router not matching empty location "/" or with useBasename, mishandling this specific case... Problem can be fixed on useBasename side by simply replacing empty pathname with /
The text was updated successfully, but these errors were encountered:
jesenko
added a commit
to jesenko/history
that referenced
this issue
Sep 25, 2015
When using
useBasename
together withreact-router
, initial location that matchesbasename
exactly results inlocation=''
which cannot be matched byreact-router
to any route. E.g:Entering URL
/basename
in browser address bar results inWarning: Location "" did not match any routes
Not sure whether issue is with
react-router
not matching empty location "/" or with useBasename, mishandling this specific case... Problem can be fixed onuseBasename
side by simply replacing empty pathname with/
The text was updated successfully, but these errors were encountered: