lightspeedretail / webstore

Web Store eCommerce solution for Lightspeed
http://www.lightspeedpos.com/webstore
Open Software License 3.0
85 stars 63 forks source link

Incorrect redirect url after successful new customer registration #677

Open Goosse opened 8 years ago

Goosse commented 8 years ago

In core/protected/controller/MyaccountController.php, on lines 495 and 561 the url is "/site".

It should, instead be "/site/index"

Goosse commented 8 years ago

Although that was the original intent, a more appropriate redirect would be to $_SERVER['HTTP_REFERER']

It's a terrible shock when a user is browsing through a website, then decide to register, then completely lose their place because they get redirected back to the home page.