I am having an issue with CDpath attaching to the end of product page urls. This results in "back to list" being added to the bottom of the product page, and clicking on this link takes you back to "about us". This happens only after I visit one of the Info Pages and then click on a product.
I read a previous thread that had a fix, but I am still experiencing the issue.
I deleted the code in
RED, as shown below:
=====================
<?php
/*
$Id: functions_htmloutput.php,v 1.0.0.0 2008/01/22 13:41:11 datazen Exp $
CRE Loaded, Open Source E-Commerce Solutions
http://www.creloaded.comCopyright (c) 2007 CRE Loaded
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
global $link, $PHP_SELF;
// if CDpath session is set, carry CDpath to next URL
if (!eregi('CDpath=', $link)) {
if (isset($_SESSION['CDpath']) && $_SESSION['CDpath'] != NULL) {
$pages = array('
articles.php',
'articles.tpl.php',
'articles_new.php',
'articles_new.tpl.php',
'article_info.php',
'article_info.tpl.php',
'categories.php',
'categories1.php',
'categories2.php',
'categories3.php',
'categories4.php',
'categories5.php',
'product_info.php',
'product_info.tpl.php',
'index_nested.tpl.php',
'index_products.tpl.php');
if (in_array(basename($PHP_SELF), $pages)) {
$this_separator = (strpos($link, '?')) ? '&' : '?';
$link .= $this_separator . 'CDpath=' . $_SESSION['CDpath'];
}
}
}
?>
==========================
I am still experiencing the problem ... can someone please tell me what I am doing wrong? I am running 6.4.1 pro. TIA.