summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/userauthorization.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/actions/userauthorization.php b/actions/userauthorization.php
index 111b54085..735bcb6b5 100644
--- a/actions/userauthorization.php
+++ b/actions/userauthorization.php
@@ -41,9 +41,8 @@ class UserauthorizationAction extends Action {
if (!common_logged_in()) {
# Go log in, and then come back
common_debug('saving URL for returnto', __FILE__);
- $argsclone = $_GET;
- unset($argsclone['action']);
- common_set_returnto(common_local_url('userauthorization', $argsclone));
+ common_set_returnto($_SERVER['REQUEST_URI']);
+
common_debug('redirecting to login', __FILE__);
common_redirect(common_local_url('login'));
return;