Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8065

DefaultI18nContentSupport wrongly forwards to fallback locale as opposed to default locale on sub pages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.15
    • 6.2.7
    • i18n
    • Yes
    • Yes
    • Global Maintenance 3
    • 5

      When using a site definition like this: 

      I expect the default locale to be "en" (for international purposes, where as en_GB will be UK specific). This works fine for the homepage when the locale is set to "en", for subpages however the DefaultI18nContentSupport doesn't default to the default locale but instead resolves to the fallback on subpages. Resulting in a locale of "en_GB" where no locale was provided in the url as opposed to "en". 

      For home page (correct):

      On subpages, actual:

      On subpages, expected: 

      So that on the default/global website in absence of any content the fallback is used, but we don't set the locale for the website since that should still be the default. 

      I've resolved for our project, but I think this might actually be unintended behavior across the board. 

      Fix: 

        Acceptance criteria

          1. image-2021-04-15-17-59-59-449.png
            41 kB
            Jeffrey van der Heide
          2. image-2021-04-15-18-00-34-701.png
            41 kB
            Jeffrey van der Heide
          3. image-2021-04-15-18-00-40-664.png
            41 kB
            Jeffrey van der Heide
          4. image-2021-04-15-18-04-07-161.png
            42 kB
            Jeffrey van der Heide
          5. image-2021-04-15-18-07-18-376.png
            25 kB
            Jeffrey van der Heide
          6. image-2021-04-15-18-10-00-823.png
            64 kB
            Jeffrey van der Heide
          7. image-2021-04-15-18-10-41-416.png
            46 kB
            Jeffrey van der Heide

              nguyen.phung Nguyen Phung Chi
              jvanderheide Jeffrey van der Heide
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 3.25d
                    3.25d