From 86e57e6e66f7d83bb2d038b7942617b6a88241e8 Mon Sep 17 00:00:00 2001 From: Clochix Date: Fri, 6 Nov 2015 16:01:43 +0100 Subject: [PATCH] Fix redirect during registration, refs #202 --- client/app/states/registration.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/app/states/registration.coffee b/client/app/states/registration.coffee index aad4cc60..38fbd99d 100644 --- a/client/app/states/registration.coffee +++ b/client/app/states/registration.coffee @@ -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