i am implementing the currency switcher on my 1.5.1.0 CE site. it's a fairly straightforward implementation, but for some reason, once i select a currency, i get redirected to the homepage rather than the page i was one.
i narrowed it down to the fact that the method _isUrlInternal is failing due to the port number being in the referring url. i'm definitely not using port numbers explicitly (using the standard 80/443).
can anyone think of a reason why it would be evaluating port numbers?
var_dump($_SERVER);
to confirm the values ofHTTP_HOST
andREMOTE_ADDR
grep
ing thecode
andlib
dirs for the existence of the post being defined.$port = $request->getServer('SERVER_PORT'); if ($port) { if ($port == Mage_Core_Controller_Request_Http::DEFAULT_HTTP_PORT) { $port = ''; } else { $port = ':' . $port; } }
since i'm on SSL when i'm on the cart :\