diff --git a/oauth_common.pages.inc b/oauth_common.pages.inc index 49695e9..8825d52 100644 --- a/oauth_common.pages.inc +++ b/oauth_common.pages.inc @@ -232,9 +232,7 @@ function oauth_common_form_authorize() { // login page in case the site has a mobile-enhanced login page. $path = variable_get('oauth_common_login_path', OAUTH_COMMON_LOGIN_PATH); drupal_goto($path, array('query' => array( - 'destination' => url('oauth/authorize', array( - 'query' => $query, - )), + 'destination' => 'oauth/authorize?' . drupal_http_build_query($query), ))); } }