Okay, this is not an error of your making, it is an error (or is it?) within CC. My site was doing the same, and I have tracked the code down.
I am not going to vouch for the safety of doing the following on your store.Perhaps one of the more experienced coders could come forward to confirm if this code change is okay. All I can say is that I have changed it on my store and it now works, and I have tested a number of links and so far things appear to be working as they should.
Righto
You will need to open the file "db.inc.php" which can be found in your "classes" folder.
Search for this code (around line 120):
CODE
// develop query string minus page vars
$queryString = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, $pageVar) == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString = "&" . htmlentities(implode("&", $newParams));
}
}
Look where there are three ampersands in quotation marks. The second after '$querystring =' is the one you want.
Simply change the "&" to "&", save, upload and voila!