Steps to reproduce:
- Add a second language to your site, let's use Portuguese, Brazil ( pt-br ) as an example.
- Install social auth + a provider like Social Auth Facebook → .
- Go to Facebook developers and create an app.
- Configure the app accordingly and set up the Social Auth Facebook settings.
- Open an anonymous window from the Portuguese login page at
yoursite.com/pt-br/login
- Use the provider to log in.
Expected behavior: Leave the page in Portuguese and return from Facebook to a page in Portuguese:
yoursite.com/pt-br/user/{uid}
Actual behavior: Leave the page in Portuguese and return from Facebook to a page in English:
yoursite.com/user/{uid}
Yes, @adinan cenci described the essence of the problem.
I will assign the issue to myself and try to prepare a solution.
- Status changed to Needs work
20 days ago 12:42pm 2 November 2024 - Assigned to davps
I rechecked the described behavior on version 4.x and it looks like this problem is no longer relevant for the latest version of the module.
I checked on another provider, not on Facebook
- added a second language (Spanish)
- went as a user (anonymous user) in incognito mode to the site and switched to Spanish
- clicked on the social network icon in the social auth block
- logged in to the social network
- the user was returned to the site in Spanish
Perhaps the problem may be relevant for 3.x. or older versions.