Commit fabe99ad81a98522bb4c192e908175e1560b1e9f
Exists in
master
and in
1 other branch
Merge pull request #349 from magiclabs/fix-redmine-tracker-project-url
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 | ... | ... |