If there is no path, route to '/'
This commit is contained in:
parent
e6106a236a
commit
3a999e8598
|
@ -152,10 +152,12 @@ Travis.Router = Ember.Router.extend
|
|||
path = sessionStorage.getItem('travis.path')
|
||||
sessionStorage.removeItem('travis.path')
|
||||
router.transitionTo('root')
|
||||
router.route(path) if path
|
||||
if path
|
||||
router.route(path)
|
||||
else
|
||||
router.route('/')
|
||||
|
||||
root: Ember.Route.extend
|
||||
initialState: 'home'
|
||||
loading: Ember.State.extend()
|
||||
|
||||
auth: Ember.Route.extend
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
ea9ff37c
|
||||
0558d6f9
|
Loading…
Reference in New Issue
Block a user