You could try something like this in your functions_general.php file, function "zen_back_link()" at around line 994.
replace:
Code:
$link = '<a href="' . zen_href_link($_SESSION['navigation']->path[$back]['page'], zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']) . '">';
with:
Code:
$temp_string = explode("&", zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')));
if (substr($temp_string[0], 0, 5) == 'cPath') {
$link = '<a href="http://www.yourdomainname.com/index.php?main_page=index&' . $temp_string[0] . '">';
} else {
$link = '<a href="' . zen_href_link($_SESSION['navigation']->path[$back]['page'], zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']) . '">';
}
This is what I wrote to accomplish the task... basically if there is a "cPath" at the start of the $_SESSION['navigation']->path[$back]['get'] variable, I return to it, otherwise it continues as normal. Replace "yourdomainname.com" with your domain obviously. There is a better way to put the website name in there, but I was lazy :-P. Maybe I'll go do that now...
Make sure you test extensively, I run a simple website with most things disabled, no sidebars, etc.
Hope that helps. Use at your own risk, make backups, etc. :-)
Lightus
Bookmarks