Open
Description
Version
2.7.0
Reproduction link
https://codesandbox.io/embed/xokkpop154?module=%2Frouter%2Findex.js
Steps to reproduce
- Create a route definition for
/
which redirects to/a
- Create a route definition for
/a
which redirects to/a/b/1
. - Create a route definition for
/a/b/:id
which redirects to/a/b/:id/c
. - Create a route definition for
/a/b/:id/c
which points to a component. - Navigate to
/
using your browser's address bar.
What is expected?
You end up at /a/b/1/c
.
What is actually happening?
You end up at /a/b/undefined/c
.
If using a function in step 3, params
is an empty object.
If you go directly to a/b/1
, it works correctly.