You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The router can't handle anything run over a local file protocol.
It interprets the third slash after file:// as a route.
So if you create an app and try to run it from file:///C:/myapp.html
It thinks you are attempting to access the route /C:/myapp.html and throws an error saying
"Warning: Location "/C:/myapp.html" does not match any routes.
This is incorrect behavior and breaks the router on stuff like phonegap.
The text was updated successfully, but these errors were encountered:
jdinard
changed the title
When running through file protocol router does not remove three slashes and incorrectly attempts to route match
(Broken as cordova/phonegap app) When running through file protocol router does not remove three slashes and incorrectly attempts to route match
Dec 3, 2015
jdinard
changed the title
(Broken as cordova/phonegap app) When running through file protocol router does not remove three slashes and incorrectly attempts to route match
(Broken as cordova/phonegap app) When running through file protocol router does not remove three slashes and incorrectly route matches
Dec 3, 2015
We want to make sure that the GitHub issue tracker remains the best place to track bug reports and feature requests that affect the development of React Router.
We also have an active and helpful React Router community on Reactiflux, which is a great place to get fast help with React Router and with the rest of the React ecosystem. You can join at https://discord.gg/0ZcbPKXt5bYaNQ46.
This is still an issue.
When I build my react router project and open the index.html in IE edge, I get file:///C:/C:/
In chrome canary, the routing works fine.
I am using hashHistory as explained above.
lockbot
locked as resolved and limited conversation to collaborators
Jan 22, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The router can't handle anything run over a local file protocol.
It interprets the third slash after file:// as a route.
So if you create an app and try to run it from file:///C:/myapp.html
It thinks you are attempting to access the route /C:/myapp.html and throws an error saying
"Warning: Location "/C:/myapp.html" does not match any routes.
This is incorrect behavior and breaks the router on stuff like phonegap.
The text was updated successfully, but these errors were encountered: