We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would love to see support for relative links in Wouter!
URL: https://www.example.com/some/long/unnested/route/foo
<Link to="../bar">Takes you to example.com/some/long/unnested/route/bar</Link>
I appreciate we can nest things but that's not always an appropriate option.
The text was updated successfully, but these errors were encountered:
It's not something we have in the roadmap, but maybe this can be solved with a custom wrapper around Link component e.g.
Link
// under the hood, takes current location from `useLocation`, resolves the absolute path and renders a regular Link <RelLink to="../bar" />
If you get it working, please let me know, maybe we can add this to the README.
Sorry, something went wrong.
No branches or pull requests
Would love to see support for relative links in Wouter!
URL: https://www.example.com/some/long/unnested/route/foo
<Link to="../bar">Takes you to example.com/some/long/unnested/route/bar</Link>
I appreciate we can nest things but that's not always an appropriate option.
The text was updated successfully, but these errors were encountered: