Skip to content

support relative path using href #18

Open
@aviram5

Description

@aviram5

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions