router5
router5 copied to clipboard
Path with no `/` is not matching route, when tralingSlashMode = always and strictTrailingSlash = true
Using [email protected] (but also experienced this from 6.1.3)
Given the following config
{
routes: {
{ name: 'test', path: '/test/' }
}
strictTrailingSlash: true,
trailingSlashMode: 'always',
}
When we navigate to /test
, our expected behaviour is that the router should redirect to /test/
and match the test
route.
What actually happens, is that the router redirects to /test/
but the router is not matched, and instead we get ROUTE_NOT_FOUND
transition error