Skip to content
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

route.start should warn when there is a data/route mismatch #157

Open
m-mujica opened this issue Feb 23, 2018 · 0 comments
Open

route.start should warn when there is a data/route mismatch #157

m-mujica opened this issue Feb 23, 2018 · 0 comments

Comments

@m-mujica
Copy link

In a sample app, I had the following routes:

route.register("/", { moduleId: "component-1" });
route.register("/component-2", { moduleId: "component-2" });

and the browser assets where located in a public folder...

when I loaded http://127.0.0.1:8080/public/ in the browser, can-route would redirect me to http://127.0.0.1:8080/ because of the route mismatch.

I was missing route.bindings.pushstate.root = "/public/", we could possibly warn the user that they might need to set the root property.

cc: @justinbmeyer

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

No branches or pull requests

1 participant