Skip to content

[Bugfix] Remove path="*" since its broken with latest dependencies #689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2018
Merged

Conversation

bkniffler
Copy link
Collaborator

@bkniffler bkniffler commented Jul 21, 2018

react-router uses path-to-regexp, which will not recognize *

Read
https://github.com/pillarjs/path-to-regexp#compatibility-with-express--4x
=> No wildcard asterisk (*) - use parameters instead ((.*))

But leaving the path away in react-router Route will effectively match all routes.

Please publish if you accept this change :) I'm living on the edge!

react-router uses path-to-regexp, which will not recognize `*`

Read
https://github.com/pillarjs/path-to-regexp#compatibility-with-express--4x
=> No wildcard asterisk (*) - use parameters instead ((.*))

But leaving the path away in react-router `Route` will effectively match all routes.
@bkniffler bkniffler changed the title Remove path="*" since its broken with latest dependencies [Bugfix] Remove path="*" since its broken with latest dependencies Jul 21, 2018
@tannerlinsley tannerlinsley merged commit f839640 into react-static:master Jul 21, 2018
@bkniffler
Copy link
Collaborator Author

Heya @tannerlinsley, could you publish this change? Thanks!

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

Successfully merging this pull request may close these issues.

2 participants