mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Use rails router, not hard coded links
This commit is contained in:
1 parent
be4ef44c13
commit
1050a4f6a7
1 file changed
+1
-1
@@ -145,7 +145,7 @@ class CustomersController < ApplicationController
|
||||
|
||||
begin
|
||||
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
|
||||
render_404
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user