From 69a2202b5f7b7239a64e133f77e2b1cab652f2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Mon, 22 Feb 2016 09:43:30 +0100 Subject: [PATCH] Redirect new registers to dashboard instead of discover --- app/coffee/modules/auth.coffee | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/coffee/modules/auth.coffee b/app/coffee/modules/auth.coffee index f30006c0..452bd217 100644 --- a/app/coffee/modules/auth.coffee +++ b/app/coffee/modules/auth.coffee @@ -299,16 +299,11 @@ RegisterDirective = ($auth, $confirm, $location, $navUrls, $config, $routeParams $scope.data = {} form = $el.find("form").checksley({onlyOneErrorElement: true}) - if $routeParams['next'] and $routeParams['next'] != $navUrls.resolve("register") - $scope.nextUrl = decodeURIComponent($routeParams['next']) - else - $scope.nextUrl = $navUrls.resolve("home") + $scope.nextUrl = $navUrls.resolve("home") onSuccessSubmit = (response) -> $analytics.trackEvent("auth", "register", "user registration", 1) - $confirm.notify("success", $translate.instant("LOGIN_FORM.SUCCESS")) - $location.url($scope.nextUrl) onErrorSubmit = (response) ->