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

[Docs]: Broken documentation URL in data router error messages #12523

Open
chida09 opened this issue Dec 11, 2024 · 5 comments
Open

[Docs]: Broken documentation URL in data router error messages #12523

chida09 opened this issue Dec 11, 2024 · 5 comments
Labels

Comments

@chida09
Copy link

chida09 commented Dec 11, 2024

Describe what's incorrect/missing in the documentation

The error message for data router hooks references a broken documentation URL:
"... must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router"

When clicking the URL in the error message, it leads to a 404 page. The documentation link appears to be outdated or incorrect.

The error message is returned by getDataRouterConsoleError() and used across multiple data router hooks.

Environment:

  • react-router-dom: 7.0.2
@chida09 chida09 added the docs label Dec 11, 2024
@nemonemi
Copy link

Same goes for the https://reactrouter.com/start/deploying. Returns 404 screen.
image

@MutazAshhab
Copy link

I am experiencing the same issue. when i click on https://reactrouter.com/v6/hooks/use-location

Two things happen:

However i noticed when i remove en/:

it takes me to the correct screen

@brookslybrand
Copy link
Contributor

@MutazAshhab those issues are different and have now been resolved

@nemonemi
Copy link

nemonemi commented Dec 18, 2024

What about the screens initially reported: https://reactrouter.com/en/main/routers/picking-a-router and https://reactrouter.com/start/deploying?

@brookslybrand
Copy link
Contributor

@nemonemi still a problem that needs to be addressed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants