Use rails router, not hard coded links

This commit is contained in:
2022-03-09 22:18:47 -05:00
parent be4ef44c13
commit 1050a4f6a7

View File

@@ -145,7 +145,7 @@ class CustomersController < ApplicationController
begin begin
issue = Issue.find_by_id(params[:id]) issue = Issue.find_by_id(params[:id])
redirect_to "#{Redmine::Utils::relative_url_root}/customers/view/#{issue.share_token.token}" redirect_to view_path issue.share_token.token
rescue rescue
render_404 render_404
end end