Skip to content

calling navigate with relative path url "../newpath" appends to current url #502

Description

@chiefcll

Describe the bug

Given I'm on a page
/show/home/fiction/333

and I call
const navigate = useNavigate();
navigate("../similar/333")

It redirects to /show/home/fiction/333/../similar/333

Your Example Website or App

None

Steps to Reproduce the Bug or Issue

Described above

Expected behavior

Expecting Router to support relative paths
It should redirect to /show/home/similar/333

Screenshots or Videos

No response

Platform

Mac + Chrome

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions