Skip to content

Commit

Permalink
Fix redirect during registration, refs cozy#202
Browse files Browse the repository at this point in the history
  • Loading branch information
clochix authored and paultranvan committed Apr 4, 2016
1 parent baa4643 commit 86e57e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/app/states/registration.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ module.exports = class Registration extends StateModel
# /!\ we can't set only the pathname here, because
# Chrome encodes it, replacing # with %23 See #195
loc = window.location
window.location.href = "#{loc.protocol}//#{loc.host}#{next}"
window.location.href = "#{loc.protocol}//#{loc.host}#{path}"


# Add the `nextControl` property ti the state-machine
# Add the `nextControl` property to the state-machine
@add 'nextControl', nextControl


Expand Down

0 comments on commit 86e57e6

Please sign in to comment.