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
8 months 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.
- Issue was unassigned.
- Status changed to Postponed: needs info
10 days ago 1:51pm 18 June 2025 - 🇮🇳India barick_manoranjan
We are using 4.1.0 and and facing the same redirection issue for google_auth for multi language between Dutch and English.
Steps to reproduce
- Go to /en/user/register
- SignUp with Google
- Added custom validation for SocialAuthEvents::USER_FIELDS event
- When validation failed it supposed to redirect /en/user/register
- But it is redirecting default lang code /user/register
- How I can redirect to /en/user/register?