修改app/code/core/Mage/Core/Model/Store.php下的getCurrentUrl函数,把
return $storeParsedUrl['scheme'] . '://' . $storeParsedUrl['host']
. (isset($storeParsedUrl['port']) ? ':' . $storeParsedUrl['port'] : '')
. $storeParsedUrl['path'] . $requestString
. ($storeParsedQuery ? '?'.http_build_query($storeParsedQuery, '', '&') : '');
改为
return $storeParsedUrl['scheme'] . '://' . $storeParsedUrl['host']
. (isset($storeParsedUrl['port']) ? ':' . $storeParsedUrl['port'] : '')
. $storeParsedUrl['path'] . $requestString;
//. ($storeParsedQuery ? '?'.http_build_query($storeParsedQuery, '', '&') : '');