summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-05-18 09:36:15 -0700
committerMichael Kozono <mkozono@gmail.com>2017-05-18 09:36:15 -0700
commit52aba709ffbe2f5410334beca6c114739054ab4c (patch)
tree418833b82cf7880278b5e89be4f978c27e9f2a9f
parent4de3d0b1bea5066e772ad6a7d02614d907594f17 (diff)
downloadgitlab-ce-52aba709ffbe2f5410334beca6c114739054ab4c.tar.gz
Fix #32506
The host should not be modified, nor is it needed for the redirect.
-rw-r--r--app/controllers/concerns/routable_actions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/routable_actions.rb b/app/controllers/concerns/routable_actions.rb
index afd110adcad..76c2908463c 100644
--- a/app/controllers/concerns/routable_actions.rb
+++ b/app/controllers/concerns/routable_actions.rb
@@ -32,7 +32,7 @@ module RoutableActions
if canonical_path.casecmp(requested_path) != 0
flash[:notice] = "#{routable.class.to_s.titleize} '#{requested_path}' was moved to '#{canonical_path}'. Please update any links and bookmarks that may still have the old path."
end
- redirect_to request.original_url.sub(requested_path, canonical_path)
+ redirect_to request.original_fullpath.sub(requested_path, canonical_path)
end
end
end