Skip to content

login links don't respect users language preference #2651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
jobara opened this issue May 8, 2025 · 0 comments
Open
1 task done

login links don't respect users language preference #2651

jobara opened this issue May 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@jobara
Copy link
Collaborator

jobara commented May 8, 2025

Prerequisites

Describe the bug

When the application is run in the local environment, usually only for local development, a series a login links are provided on the login page to simplify testing different user accounts. However, these logins don't respect the user's language preference and will load the site in whatever language the site was in at the time of login.

To Reproduce

Steps to reproduce the behavior:

  1. Start the site locally with the APP_ENV set to local
  2. Open the site and click "Sign in"
  3. On the Sign in page scroll down and click "Sign in as individual user"
  4. Go to My Settings > Language Preferences
  5. Change the Website language and click "Save"
  6. Logout
  7. The site should be in English again after logout
  8. Go back to "Sign in" and again click "Sign in as individual user"
  9. Notice the site is still in English and not the user's chosen language
  10. Go back to the My Settings > Language Preferences page.
  11. Notice the site is returned to the user's preferred language and the setting is correct
  12. Logout
  13. Go back to "Sign in" and instead of manually enter the user's credentials. ( account is for [email protected]).
  14. Notice that this time the site language matches the user's chosen language.

Expected behavior

The site should be loaded with the users chosen language regardless of method of signing in.

Additional context

Appears to be an issue with the x-login-link components in the resources/views/auth/login.blade.php file. Which I believe are related to the spatie/laravel-login-link package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants