Changed modal redirect behaviour

This commit is contained in:
Matt-Yorkley
2017-06-22 16:53:02 +01:00
committed by Maikel Linke
parent d8a158c56d
commit 23a6e2dd8f

View File

@@ -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 = "/"