Skip to content
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

Load site default language ID into session unless the one in session … #2957

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dbwinger
Copy link
Contributor

@dbwinger dbwinger commented Jul 1, 2024

…is associated with the current site.

What is this pull request for?

If at least one site has multiple languages, after the language is switched in the admin/pages view, the language ID is saved to session, and switching to another site does not change the language in session, which causes that language's pages to continue to be shown.

Closes #2956

This should be backported at least to 7.1.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@dbwinger dbwinger requested a review from a team as a code owner July 1, 2024 18:49
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.02%. Comparing base (72973ad) to head (e274774).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2957      +/-   ##
==========================================
+ Coverage   96.00%   96.02%   +0.01%     
==========================================
  Files         232      233       +1     
  Lines        6282     6312      +30     
==========================================
+ Hits         6031     6061      +30     
  Misses        251      251              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dbwinger dbwinger force-pushed the switch-language-on-site-switch branch from c01a91e to e274774 Compare July 1, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Page tree doesn't switch languages when another site has more than one language.
1 participant