summaryrefslogtreecommitdiffstats
path: root/app/views/journals
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/journals')
-rw-r--r--app/views/journals/diff.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/journals/diff.html.erb b/app/views/journals/diff.html.erb
index ac17e090a..d28ee0f71 100644
--- a/app/views/journals/diff.html.erb
+++ b/app/views/journals/diff.html.erb
@@ -7,7 +7,7 @@
<p>
<%= link_to(l(:button_back), issue_path(@issue),
- :onclick => 'if (history.length > 1) {history.back(); return false;}') %>
+ :onclick => 'if (document.referrer != "") {history.back(); return false;}') %>
</p>
<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>