If there is no path, route to '/'

This commit is contained in:
Piotr Sarnacki 2012-10-09 04:11:23 +02:00
parent e6106a236a
commit 3a999e8598
4 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -1 +1 @@
ea9ff37c
0558d6f9