-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Allow HashRouter URL without leading slash #8463
Allow HashRouter URL without leading slash #8463
Conversation
6643478
to
009909e
Compare
Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳 |
009909e
to
a552625
Compare
Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳 |
@@ -41,7 +41,7 @@ | |||
"eslint-plugin-jsx-a11y": "^6.4.1", | |||
"eslint-plugin-react": "^7.24.0", | |||
"eslint-plugin-react-hooks": "next", | |||
"history": "^5.0.0", | |||
"history-noslash": "^5.2.0-noslash.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If PR #911 of history
is merged, I’d update this dependency.
Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳 |
915ad90
to
e026838
Compare
Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳 |
As Ryan mentioned, this isn't going to be implemented: #8460 (comment) |
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Closes issue #8459.
This is an alternative to PR #8460. It is cleaner but also requires another pull request to
remix-run/history
.The difference allows
HashRouter
to have paths are written to the URL like#abc
instead of#/abc
.I understand if the contributors have a preference to not allow this behavior, but I thought I'd present another attempt. I'm happy to write tests for this PR if anyone is willing to consider it.