hello, I would like to try to redirect users by country.
if an English user tries to go to url /fr I would like to direct him to /en (after the user is logged)
Where could this control be centralized? (like a middleware) I would check if the user is logged in, take the country attribute and compare it with the url path.
A thousand thanks.
Hello @tunnel_dev ,
You can use the following extension for your requirement
https://amasty.com/geoip-for-magento-2.html
this is paid extension .
or you can try the below one on Github.
https://github.com/opengento/magento2-country-store-redirect
Let me know if you have some other requirements other than these two.
Thank you
Problem solved? Accept as a solution and click kudos
hi Smita, thank you so much for the reply.
the redirect should only take place after login based on a customer attribute, not based on geolocation.
Thanks again
Hello @tunnel_dev ,
can you check the below link?
https://magento.stackexchange.com/a/176710/72475
Thank you.