Преглед на файлове

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 години
родител
ревизия
c1b654b459
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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.)
 	// Show a back button (using javascript.)
 	echo '
 	echo '
 	<div class="centertext">
 	<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>';
 	</div>';
 }
 }