The host should not be modified, nor is it needed for the redirect.
This commit is contained in:
Michael Kozono 2017-05-18 09:36:15 -07:00
parent 4de3d0b1be
commit 52aba709ff
1 changed files with 1 additions and 1 deletions

View File

@ -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