Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-88951

SiteMap URLs lack the necessary parameters to construct a valid themeDisplay

    Details

      Description

      Reproduction steps:

      1) In the Liferay site, go to Configuration > Site settings > Languages and select the radio button: "Define a custom default language and additional available languages for this site"
      2)
      Default language: Catalan (Spain)
      Available Languages > Current: Catalan (Spain)
      Available Languages > Available: (Move all other locales to this list)

      3) Create a brand new blank site, testsite1
      4) Ensure that, for testsite1, Configuration > Site settings > Languages is set to: "Use the default language options"
      5) Create a new public page on testsite1
      6) Go to Public pages > Configure > Advanced > Sitemap > Send sitemap information to preview (click on preview):
      7) Copy the url in the <loc> element and paste it in a new browser's tab, then hit enter

      (example: http://localhost:8080/sitemap.xml?layoutUuid=8c390292-fd42-8152-7724-6e3f0c0b60e4&groupId=37932&privateLayout=false)

      Actual behavior: This will appear:

      Expected behavior: This to be shown:

      Problem: ServicePreAction can't initiate a themeDisplay based on layoutUuid, groupId and privateLayout, so it uses the default Liferay site's themeDisplay, where the locales are limited to Catalan.

       

      Possible fix: add p_l_id with the layout's plid to the URL.

       

        Attachments

          Activity

            People

            Assignee:
            peyton.zhao Peyton Zhao (Inactive)
            Reporter:
            balazs.safrany-kovalik Balázs Sáfrány-Kovalik
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 36 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP72
                7.0.10.11 DXP SP11
                7.0.X
                7.1.10 DXP FP7
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master