Skip to content

Redirect with matched parameters doesn't work #5983

@Nemo108

Description

@Nemo108

Version

4.2.0

Test Case

https://codesandbox.io/s/p51on3mxlx

Steps to reproduce

Something like this
<Redirect from="/topics/:id" to="/topic/:id" />

Expected Behavior

Redirect from like /topics/1 to /topic/1 as it is described in official docs: https://reacttraining.com/react-router/web/api/Redirect/from-string

Actual Behavior

Ignoring matched params and redirecting from /topics/1 to /topic/:id

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