diff --git a/actions/userauthorization.php b/actions/userauthorization.php index 111b54085c..735bcb6b5a 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;