mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Use rails router, not hard coded links
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user