nexcess / magento-turpentine

A Varnish extension for Magento.
GNU General Public License v2.0
519 stars 253 forks source link

Customer Log In redirects back to Home page or cart and NOT to previous page #573

Open dbosler opened 10 years ago

dbosler commented 10 years ago

I've configured the site in the Admin Panel under System | Configuration | Customers | Customer Configuration | Log In Options - Redirect Customer to Account Dashboard after Logging in = No, to Customer will stay on the current page after logging in.

Turpentine is overriding the referer url variable to goto the Home page or the cart page after customer logs in. The issue seems to be in the turpentine/Model/Dummy/Request.php on lines 645-649. The $router->getModuleByFrontName($module) on line 645 always returns "false", and exits the _standardRouterMatch() function.

Knase commented 9 years ago

Hi I had problem such as this. Please look

echo $_SERVER['SERVER_PORT']; 

SERVER_PORT will be 80, but its 8080.

aricwatson commented 9 years ago

I was able to replicate this bug.

Turpentine is overriding the referer url variable to goto the Home page or the cart page after customer logs in. The issue seems to be in the turpentine/Model/Dummy/Request.php on lines 645-649. The $router->getModuleByFrontName($module) on line 645 always returns "false", and exits the _standardRouterMatch() function.

This doesn't seem to be the case (at least in my testing so far) - still running down where the disconnect is happening.