diff options
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/coffee/issues/issue-view.coffee | 9 | ||||
-rw-r--r-- | sonar-server/src/main/hbs/issues/issue.hbs | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/sonar-server/src/main/coffee/issues/issue-view.coffee b/sonar-server/src/main/coffee/issues/issue-view.coffee index 9b52b6b998a..abbdc44069e 100644 --- a/sonar-server/src/main/coffee/issues/issue-view.coffee +++ b/sonar-server/src/main/coffee/issues/issue-view.coffee @@ -244,4 +244,11 @@ define [ .done => @resetIssue() .fail (r) => alert _.pluck(r.responseJSON.errors, 'msg').join(' ') - @hideActionSpinner()
\ No newline at end of file + @hideActionSpinner() + + + serializeData: -> + componentKey = encodeURIComponent @model.get 'component' + issueKey = encodeURIComponent @model.get 'key' + _.extend super, + permalink: "#{baseUrl}/resource/index#component=#{componentKey}¤tIssue=#{issueKey}"
\ No newline at end of file diff --git a/sonar-server/src/main/hbs/issues/issue.hbs b/sonar-server/src/main/hbs/issues/issue.hbs index bab46bf06b7..f59b2cae41b 100644 --- a/sonar-server/src/main/hbs/issues/issue.hbs +++ b/sonar-server/src/main/hbs/issues/issue.hbs @@ -5,7 +5,7 @@ </div> <div class="code-issue-permalink"> - <a target="_blank" href="../issue/show/{{key}}?layout=false"> + <a target="_blank" href="{{permalink}}"> <i class="icon-link"></i> </a> </div> |