Uploaded image for project: 'Magnolia Multisite Module'
  1. Magnolia Multisite Module
  2. MULTISITE-99

getBrowserLink adds unwanted locale prefix when using HierarchyBasedI18nContentSupport

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 2.1.1
    • Magnolia 6.2.2 on Tomcat

    Description

      Setting HierarchyBasedI18nContentSupport as the i18n support on a site with the following structure and just the fallback site definition, (de as fallback locale)

      /siteroot/de/en
      /siteroot/de/de

      Produces proper website links line domain/siteroot/de/en/home
      but when using content app elements, the url adds the unwanted locale domain/en/siteroot/de/en/home

      Workaround extend MultiSiteLinkTransformerManager with the following

      @Override
          public AbsolutePathTransformer getAbsolute() {
              AbsolutePathTransformer transformer = getAbsolute(true);
              transformer.setUseI18N(false);
              return transformer; 
          }
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              tmiyar Teresa Miyar
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD