diff --git a/lib/issue_patch.rb b/lib/issue_patch.rb index 23b83f2..6d6e768 100644 --- a/lib/issue_patch.rb +++ b/lib/issue_patch.rb @@ -94,7 +94,7 @@ module IssuePatch # Create a shareable link for a customer def share_link token = CustomerToken.create(:expires_at => Time.now + 24.hours, :issue_id => id) - link_to "#{tracker} ##{id}: #{subject}", view_path + token.token + return "#{Redmine::Utils::relative_url_root}/customers/view/#{token.token }" end end