Skip to content

Relative link resolve to wrong path using react router #10538

Description

@Austaras

Provide a general summary of the issue here

Relative link should resolve to relative to current path, but resolve to relative to root instead

🤔 Expected Behavior?

to a link could jump to a(href is foo/123/a)

😯 Current Behavior

jump to /a instead

💁 Possible Solution

No response

🔦 Context

I want to use relative link

🖥️ Steps to Reproduce

https://stackblitz.com/edit/ykg5tnnw

  1. Click to
  2. Click to b
  3. Click to a

Version

latest

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions