diff --git a/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee b/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee index 96d52d566b..b504d92c76 100644 --- a/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee +++ b/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee @@ -15,6 +15,9 @@ Darkswarm.factory "AuthenticationService", (Navigation, $modal, $location, Redir @selectedPath = path || @selectedPath Navigation.navigate @selectedPath + # Opens the /login tab if returning from email confirmation, + # the /signup tab if opened from the enterprise registration page, + # otherwise opens whichever tab is selected in the URL params ('/login', '/signup', or '/forgot') initialTab: -> if angular.isDefined($location.search()['validation']) '/login' @@ -23,6 +26,7 @@ Darkswarm.factory "AuthenticationService", (Navigation, $modal, $location, Redir else $location.path() + # Loads the registration page modal when needed, otherwise the default modal initialTemplate: -> if location.pathname is '/register/auth' 'registration_authentication.html'