router5 icon indicating copy to clipboard operation
router5 copied to clipboard

Path with no `/` is not matching route, when tralingSlashMode = always and strictTrailingSlash = true

Open dogoku opened this issue 5 years ago • 0 comments

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

dogoku avatar Aug 08 '18 07:08 dogoku