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

URLs in sitemaps are broken for article content

    Details

    • Story Points:
      4

      Description

      I have articles on my portal page, those are listed in the sitemap.xml file. But the URLs are broken - the virtual host name is double, for eymple:

      <url>
        <loc>
          http://www.slowenisch.athttp://www.slowenisch.at/-/episodenfilm-an-der-slowenisch-osterreichischen-grenze
        </loc>
      </url>
      

      I had a look into the SitemapImpl.java file, in method visitArticle() there are the following two lines:

      SitemapImpl.visitArticle()
      ..
      	sb.append(portalURL);
      	sb.append(groupFriendlyURL);
      ..
      

      It seems that the groupFriendlyURL should contain a relative path but is in fact an absolute one, might that be that case? I tried to dig into the relevant methods but have not enough experience in the guts of Liferay.

        Attachments

          Activity

            People

            Assignee:
            yang.gao Yang Gao (Inactive)
            Reporter:
            mcaviti Klemens Dickbauer
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 26 weeks, 6 days ago

                Packages

                Version Package
                6.1.2 CE GA3
                6.1.30 EE GA3
                6.2.0 CE M5