I have an AngularJS app starting at index.html and using ui-router. Based on a trigger I want to reload the complete page. I tried:
$state.go($state.current, $stateParams, {
reload: true,
inherit: false,
notify: true
});
But that does not work. It doesn't reload my initial index.html.
I can do:
window.location.href = "index.html";
But then I'm on my initial page, not the current state.
Should a set window.location.href
to index.html
with query string parameters specifying current location? If I do that, how can I navigate to this location?