Skip to content
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

Closed

Conversation

thejohnhoffer
Copy link

@thejohnhoffer thejohnhoffer commented Dec 10, 2021

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.

@thejohnhoffer thejohnhoffer force-pushed the dev-depend-on-history-noslash branch from 6643478 to 009909e Compare December 10, 2021 00:03
@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Dec 10, 2021

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

@thejohnhoffer thejohnhoffer force-pushed the dev-depend-on-history-noslash branch from 009909e to a552625 Compare December 10, 2021 00:04
@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Dec 10, 2021

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",
Copy link
Author

@thejohnhoffer thejohnhoffer Dec 10, 2021

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.

@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Dec 10, 2021

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

@thejohnhoffer thejohnhoffer force-pushed the dev-depend-on-history-noslash branch from 915ad90 to e026838 Compare December 10, 2021 05:11
@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Dec 10, 2021

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

@timdorr
Copy link
Member

timdorr commented Dec 10, 2021

As Ryan mentioned, this isn't going to be implemented: #8460 (comment)

@timdorr timdorr closed this Dec 10, 2021
brophdawg11 pushed a commit that referenced this pull request Mar 27, 2024
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants