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

support relative path using href #18

Open
aviram5 opened this issue Jun 16, 2024 · 0 comments
Open

support relative path using href #18

aviram5 opened this issue Jun 16, 2024 · 0 comments

Comments

@aviram5
Copy link

aviram5 commented Jun 16, 2024

As of right now href expect (and also auto complete) full path, this is an issue when I want to navigate to a "sibling" path and keep all the url params. The current way is to get all the params and pass it again which can be "ugly" and not convenient.

Example:
The browserRouter path is: "root/: someId/PathA" and "root/: someId/PathB"
I want to navigate from pathA to pathB by relative path "./PathB" and keep the current "soemId" in the url

a possible solution is to add to the href options object a boolean property "relative" and the path will accept and auto complete this syntax "./path"

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

No branches or pull requests

1 participant