Skip to content

support relative path using href #18

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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