-
Notifications
You must be signed in to change notification settings - Fork 962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V5 Missing hashType="noslash" #912
Comments
With So, if PR #911 were released with <HistoryRouter basename="" history={createHashHistory({
window, hashRoot: ""
})}> Here is a short example I've written to integrate |
The release of
history@5
lost the ability to navigate aHashHistory
without a slash in the hash (like#1/2/3
instead of#/1/2/3
) due to a missinghashType
option tocreateHashHistory
.After another user asked about the resulting loss of
hashType
inreact-router-dom@6
, one maintainer suggested we file in this repository. The solution developed in PR #911 would allowhashRoot=""
to replicate the old behavior ofhashType="noslash"
.The ability to begin hashes with
#
instead of#/
is not only cosmetic. I am migrating an existing website from vanilla javascript to react, and backwards compatibility of existing URL hash values requires#
instead of#/
.The text was updated successfully, but these errors were encountered: