提交 52aba709 编写于 作者: M Michael Kozono

Fix #32506

The host should not be modified, nor is it needed for the redirect.
上级 4de3d0b1
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册