Originally Posted by
SPH
I was hoping that this newer version Ultimate SEO would solve a pesky problem a few of my prior testings had: the page not found problem when go to a product, then a page like Contact Us, then hit the back button at bottom of Contact Us...some of my sites went to page not found in the Chrome browser. Other's do not have this problem, including my latest demo here.
I've not been able to duplicate this myself yet *crosses fingers*. I'm guessing it may be related to some sort of dynamic or restricted content being loaded by an plugin (and the plugin not removing the call from the history stack). Or maybe the browser making some additional calls. But if you do run into this problem again add the following to the template of the page where the "back" button is displayed. Hopefully we can look at the output to help track down the issue.
Code:
<!-- BACK BUTTON GENERATED <?php
if(sizeof($_SESSION['navigation']->path)-2 >= 0) {
$back = sizeof($_SESSION['navigation']->path)-2; ?>
SESSION PAGE: <?php echo $_SESSION['navigation']->path[$back]['page']; ?>
SESSION PARAMS: <?php echo zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action'); ?>
SESSION CONNECTION: <?php echo $_SESSION['navigation']->path[$back]['mode']; ?>
GENERATED LINK: <?php echo zen_href_link($_SESSION['navigation']->path[$back]['page'],zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']);
} ?>
-->
Bookmarks