Commit 6fb03c32659abb5b5cfcc2095ab27c9fd96ad039
1 parent
55fcdbe2
Exists in
master
and in
1 other branch
Fixes the url to redmine tracker project page.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/models/issue_trackers/redmine_tracker.rb
... | ... | @@ -57,7 +57,8 @@ if defined? RedmineClient |
57 | 57 | |
58 | 58 | def url |
59 | 59 | acc_url = account.start_with?('http') ? account : "http://#{account}" |
60 | - URI.parse("#{acc_url}?project_id=#{project_id}").to_s | |
60 | + acc_url = acc_url.gsub(/\/$/, '') | |
61 | + URI.parse("#{acc_url}/projects/#{project_id}").to_s | |
61 | 62 | rescue URI::InvalidURIError |
62 | 63 | end |
63 | 64 | end | ... | ... |