[MAGNOLIA-7130] local wrongly determined in multi site after update to 5.5.6 Created: 04/Sep/17  Updated: 04/Sep/17

Status: Open
Project: Magnolia
Component/s: None
Affects Version/s: 5.5.6
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Tomáš Gregovský Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

We used to have on corporate website this configuration for multisite:

en
    i18n
        locales
              - en
              - de
        - defaultLocal: en
        - fallbackLocal: en
de
    i18n
        locales
              - en
              - de
        - defaultLocal: de
        - fallbackLocal: en

when site module match correctly with 'de' site, local is still determined wrong as a 'en' (it use fallbackLocal). So all links in '/de' site has '/en' prefixes - cross site links.

Issues seems to be in:
/main/magnolia-core/src/main/java/info/magnolia/cms/i18n/AbstractI18nContentSupport.java
on line 145 (this should return null in our case, but doesn't).


Generated at Mon Feb 12 04:21:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.