Closed 01AutoMonkey closed 9 years ago
Found the solution!
Instead of:
RouterContainer.set(Router.create({
routes: Routes
}));
One should pass in a location field like so:
RouterContainer.set(Router.create({
routes: Routes,
location: Router.HistoryLocation
}));
For example when I do
.transitionTo('/');
when I'm at/query/777
, I go to/query/777#/
and not/
. The routes work correctly though when I'm traveling through aRouter.Link
. So basically, how can I get my.transitionTo
code to use HTML5 History like myRouter.Link
instead of a Hash?