Skip to content

NestedRoutes always redirects to not found destination #26

@wintondeshong

Description

@wintondeshong

Problem
When supplying the redirectToIfNotFound property, the application will always redirect to that location.

Solution
Atleast part of the solution is that the NestedRoutes component must have a <Switch> around its' mapped <NestedRoute> and <Redirect>.

In testing make sure your routing table is flat and nested (at least two levels - nested layouts would be even better of a test)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions