summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authormhasbini <mohammad.hasbini@gmail.com>2017-04-02 18:54:19 +0300
committermhasbini <mohammad.hasbini@gmail.com>2017-04-02 18:54:19 +0300
commitaf0c08b6f92a0933e24414bea11344162cda6c43 (patch)
treec56dcf4da3586922629def06f3962f667db6facb /app/controllers
parent9fc17f6f4abdb04f3cf1b60b87bd67b894a19c39 (diff)
downloadgitlab-ce-af0c08b6f92a0933e24414bea11344162cda6c43.tar.gz
Fix redirection after login when the referer have params
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/sessions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index 7d81c96262f..d8561871098 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -79,7 +79,7 @@ class SessionsController < Devise::SessionsController
if request.referer.present? && (params['redirect_to_referer'] == 'yes')
referer_uri = URI(request.referer)
if referer_uri.host == Gitlab.config.gitlab.host
- referer_uri.path
+ referer_uri.request_uri
else
request.fullpath
end