bitExpert / magento2-force-login

Force Customer Login Module for Magento 2
https://marketplace.magento.com/bitexpert-magento2-force-customer-login.html
Apache License 2.0
166 stars 73 forks source link

Fix for: Homepage Redirect After Login Leads To incorrect url #184 #206

Closed fsspencer closed 2 years ago

fsspencer commented 3 years ago

This PR fixes the issue https://github.com/bitExpert/magento2-force-login/issues/184 reported by multiple users where a customer is being redirected to customer/section/load when this controller is being called right after logging in.

This fix prevents the LoginCheck controller to use those async controllers as referrers, otherwise, the customer will be redirected to a blank page with JSON content.