From 23a6e2dd8fbcd14face4d38e9dba968211f6daa8 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley Date: Thu, 22 Jun 2017 16:53:02 +0100 Subject: [PATCH] Changed modal redirect behaviour --- .../darkswarm/services/authentication_service.js.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee b/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee index 478f5f28e1..02543c5538 100644 --- a/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee +++ b/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee @@ -25,9 +25,7 @@ Darkswarm.factory "AuthenticationService", (Navigation, $modal, $location, Redir isActive: Navigation.isActive close: -> - if location.pathname in ["/", "/checkout"] - Navigation.navigate "/" - else + if location.pathname in ["/register", "/register/auth"] Loading.message = t 'going_back_to_home_page' location.hash = "" location.pathname = "/"