Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-05-18 19:36:15 +0300
committerMichael Kozono <mkozono@gmail.com>2017-05-18 19:36:15 +0300
commit52aba709ffbe2f5410334beca6c114739054ab4c (patch)
tree418833b82cf7880278b5e89be4f978c27e9f2a9f /app/controllers
parent4de3d0b1bea5066e772ad6a7d02614d907594f17 (diff)
Fix #32506
The host should not be modified, nor is it needed for the redirect.
Diffstat (limited to 'app/controllers')
-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