Page 1 of 1

BUG - IE history.back() - mod to front.func.inc.php

Posted: Mon 21. May 2007, 00:32
by jsw_nz
In IE Windows
- the standard wcms replacemnt code for [BACK][/BACK] is not working
- at least on my client - config
- I know this has been discussed elsewhere....
- just substitued at line 1400 in front.funct.inc.php

Code: Select all

// back Link (string) - IE BUG
$search[14] = '/\[BACK\](.*?)\[\/BACK\]/i';

// FORMER CODE
//$replace[14] 	= '<a href="#" target="_top" title="go back" onclick="history.back();return false;" class="phpwcmsBackLink">$1</a>';

//MODIFIED CODE
$replace[14] 	= '<a href="javascript:history.back();" target="_top" title="go back" class="phpwcmsBackLink">$1</a>';
Cannot be sure if this interferes with other functionality of wcms - but at least the bug experience in IE is fixed

cheers
:)