##// END OF EJS Templates
use document.referrer instead of history.length (#13697)...
Toshi MARUYAMA -
r11670:1e18c2309544
parent child
Show More
@@ -7,7 +7,7
7 7
8 8 <p>
9 9 <%= link_to(l(:button_back), issue_path(@issue),
10 :onclick => 'if (history.length > 1) {history.back(); return false;}') %>
10 :onclick => 'if (document.referrer != "") {history.back(); return false;}') %>
11 11 </p>
12 12
13 13 <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
General Comments 0
You need to be logged in to leave comments. Login now