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
Hi there. I'd like to handle both a default state for the first page get and show a 404 error template if a url does not exist. I'm trying with
$urlRouterProvider.otherwise("/");
That solve my first problem but, of course, anytime an incorrect url is typed, ui-router load the starting state. Is there a way to handle those two cases separately?
The text was updated successfully, but these errors were encountered:
In the meantime you should be able to use a function for otherwise that picks the URL to redirect to. It can check the ui router globals transition history to see if it is before any transitions have started
Hi there. I'd like to handle both a default state for the first page get and show a 404 error template if a url does not exist. I'm trying with
$urlRouterProvider.otherwise("/");
That solve my first problem but, of course, anytime an incorrect url is typed, ui-router load the starting state. Is there a way to handle those two cases separately?
The text was updated successfully, but these errors were encountered: