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
location.pathname is supposed to always be non-empty.
If basename is set to /basename and the user navigates to /basename URL, createBasenameMiddleware() simply strips the whole string from the URL and the result is incorrect: pathname: "".
The fix would be adding || '/' after location.pathname.slice(pathnamePrefix.length):
location.pathname
is supposed to always be non-empty.If
basename
is set to/basename
and the user navigates to/basename
URL,createBasenameMiddleware()
simply strips the whole string from the URL and the result is incorrect:pathname: ""
.The fix would be adding
|| '/'
afterlocation.pathname.slice(pathnamePrefix.length)
:The text was updated successfully, but these errors were encountered: