Browse Source

Change the URL for the 'back' button in error messages to prevent problems with browser caching (fix for #182)

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 years ago
parent
commit
c1b654b459
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>';
 }