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

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

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

Post 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
:)
Post Reply