Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Routes ending in a slash are broken #276

Open
RussianCow opened this issue Mar 21, 2018 · 0 comments
Open

Routes ending in a slash are broken #276

RussianCow opened this issue Mar 21, 2018 · 0 comments

Comments

@RussianCow
Copy link

RussianCow commented Mar 21, 2018

All my routes are defined with trailing slashes. After upgrading from 14.2.0 to 14.3.0, my routes are broken and don't get matched by the router.

Example of how my routes look:

const routes = {
  '/': {},
  '/profile/': {},
  '/users/:id/': {},
  // ...etc...
}

Using the above example, if I visit /profile/, state.router.route is undefined. This worked fine in 14.2.0. Is this intended behavior? And if so, how do I enforce trailing slashes on all my routes?

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant