react-router icon indicating copy to clipboard operation
react-router copied to clipboard

Fix encoded # in path parameter causes route to be evaluated differently

Open dunnai opened this issue 1 year ago • 4 comments

#11929

dunnai avatar Sep 11 '24 16:09 dunnai

⚠️ No Changeset found

Latest commit: 5cc0999fb5514a0bc2c045cffd541725105c92bd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Sep 11 '24 16:09 changeset-bot[bot]

Hi @dunnai,

Welcome, and thank you for contributing to React Router!

Before we consider your pull request, we ask that you sign our Contributor License Agreement (CLA). We require this only once.

You may review the CLA and sign it by adding your name to contributors.yml.

Once the CLA is signed, the CLA Signed label will be added to the pull request.

If you have already signed the CLA and received this response in error, or if you have any questions, please contact us at [email protected].

Thanks!

- The Remix team

remix-cla-bot[bot] avatar Sep 11 '24 16:09 remix-cla-bot[bot]

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

remix-cla-bot[bot] avatar Sep 11 '24 16:09 remix-cla-bot[bot]

Can you add a test for this?

timdorr avatar Sep 11 '24 17:09 timdorr

@dunnai @timdorr is there any way I can help on this one?

I assume the issue still persist in v7, but I might be wrong?

jhroemer avatar Nov 22 '24 10:11 jhroemer

@jhroemer The issue still persists in v7, but merging my code will fix it.

dunnai avatar Nov 30 '24 13:11 dunnai

Thank you for the PR - I think it's safest to do this logic higher up so we don't inadvertently encode valid hash characters. I have an updated solution in #14249 that only does this on hashes in the pathname portion of a location.

brophdawg11 avatar Aug 26 '25 20:08 brophdawg11