-<%= l(:text_issue_added, :id => "##{@issue.id}", :author => h(@issue.author)) %>
+<%= l(:text_issue_added, :id => link_to("##{@issue.id}", @issue_url), :author => h(@issue.author)).html_safe %>
<hr />
<%= render :partial => 'issue', :formats => [:html], :locals => { :issue => @issue, :users => @users, :issue_url => @issue_url } %>
<% if @journal.private_notes? %>
(<%= l(:field_private_notes) %>)
<% end %>
-<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => h(@journal.user)) %>
+<%= l(:text_issue_updated, :id => link_to("##{@issue.id}", @issue_url), :author => h(@journal.user)).html_safe %>
<ul>
<% details_to_strings(@journal_details, false, :only_path => false).each do |string| %>
assert_not_nil mail
assert_select_email do
+ # link to the main ticket on issue id
+ assert_select 'a[href=?]',
+ 'https://mydomain.foo/issues/2#change-3',
+ :text => '#2'
# link to the main ticket
assert_select 'a[href=?]',
'https://mydomain.foo/issues/2#change-3',