Browse Source

Merge pull request #452 from Oldiesmann/release-2.1

Change the URL for the 'back' button in error messages to prevent proble...
Michael Eshom 11 years ago
parent
commit
d0c799de9a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Themes/default/Errors.template.php

+ 1 - 1
Themes/default/Errors.template.php

@@ -37,7 +37,7 @@ function template_fatal_error()
 	// Show a back button (using javascript.)
 	echo '
 	<div class="centertext">
-		<a class="button_link" style="float:none" href="javascript:history.go(-1)">', $txt['back'], '</a>
+		<a class="button_link" style="float:none" href="javascript:document.location=document.referrer">', $txt['back'], '</a>
 	</div>';
 }