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

Locale is lost after forward

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Selected
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:

      Description

      Installation without travel demo:

      1. request for /de/source
      2. i18n filter detects language DE and strips language prefix: /source
      3. virtualUriFilter forwards to /target (default locale)
      4. i18n filter detect default (wrong) language

      Installation with travel demo (has bypass configured on i18n filter for fowards):

      1. request for /de/source
      2. i18n filter detects language DE and strips language prefix: /source
      3. virtualUriFilter forwards to /target (default locale)
      4. i18n is bypassed (keeping the correct language in the context)

      Forwards are working but dynamic fragments are broken as those include the language prefix.

      The bypass should be either

      • configured by default (not only by travel demo) and dynamic fragments should be requested without the locale prefix (this seems to be the most straightforward solution) or
      • no bypass, i18n would be triggered for forwards
        • virtualUriFilter would have to be before the i18n filter (this would change the order of the cache filter as well!)
          • forward have to be configured including the language prefix (/ {locale}/source) -> /{locale}

            /target)

      We have integration tests for personalisation but the language specific request are probably not covered.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Time Spent - 2h 16m Remaining Estimate - 5h
                  5h
                  Logged:
                  Time Spent - 2h 16m Remaining Estimate - 5h
                  2h 16m