mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-03-14 08:58:14 -04:00
Fallback to /ui if there is no lastUrl for omega-web.
This commit is contained in:
parent
54eaf96634
commit
045d852739
@ -37,7 +37,7 @@ angular.module('omega').config ($stateProvider, $urlRouterProvider,
|
|||||||
|
|
||||||
$urlRouterProvider.otherwise ($injector, $location) ->
|
$urlRouterProvider.otherwise ($injector, $location) ->
|
||||||
if $location.path() == ''
|
if $location.path() == ''
|
||||||
$injector.get('omegaTarget').lastUrl()
|
$injector.get('omegaTarget').lastUrl() || '/ui'
|
||||||
else
|
else
|
||||||
'/ui'
|
'/ui'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user