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

fix(doc): remove trailing slash from anchored links #1033

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

real34
Copy link
Contributor

@real34 real34 commented Dec 14, 2021

because it leads to client side navigation errors: the canonical URL has no trailing slash


I noticed that on https://remix.run/docs/en/v1/api/conventions#handle, the useMatches link redirects to https://remix.run/docs/en/v1.0.6/api/remix/#usematches

When SSR'd (e.g: open in new tab) it renders properly because of a 302 to https://remix.run/docs/en/v1.0.6/api/remix#usematches (trailing URL slash removed).
On client side navigation it leads to a 404.

vokoscreen-2021-12-14_04-58-22.mp4

Next

I've only searched for occurrences in this documentation page. The doc may contain other ones.
It may also be considered as a bug with Remix itself and may need a fix in the client-side navigation default patterns? (not sure what does the 302 on the deployed instance - if it comes from fly.io or remix server)

because it leads to client side navigation errors: the canonical URL has no trailing slash
@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Dec 14, 2021

Hi @real34,

Welcome, and thank you for contributing to Remix!

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
Copy link
Contributor

remix-cla-bot bot commented Dec 14, 2021

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

@chaance chaance merged commit 19b016b into remix-run:main Dec 14, 2021
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