AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
817 stars 313 forks source link

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

Open dbwinger opened 3 days ago

dbwinger commented 3 days ago

…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

codecov[bot] commented 3 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.