Skip to content

Commit 59b0ea4

Browse files
committed
set redirectionPath only if unauthenticated
1 parent 59a4589 commit 59b0ea4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/mixins/authenticated-route-mixin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ export default Mixin.create(AuthenticatedRouteMixin, {
77
session: service(),
88

99
beforeModel () {
10-
localStorage.setItem('redirectionPath', window.location.pathname)
11-
1210
if(!this.session.isAuthenticated) {
11+
localStorage.setItem('redirectionPath', window.location.pathname)
1312
router.transitionTo('application')
1413
}
1514
}

0 commit comments

Comments
 (0)