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

Sitemap urls append the i18n path at the end (not before the friendly url)

    Details

      Description

      1. Access localhost:8080
      2. Add several pages to the default site
      Home
      Blogs
      Documents
      3. Go to Site Administration -> Configuration
      4. Sitemap
      5. Preview the sitemap for the current site and you should see the urls are properly generated (the i18n path is prepend to the friendly url): http://localhost:8080/es/web/guest/blogs

      Modify /etc/hosts in your system and add the following line at the very end:
      127.0.0.1 liferay123

      Now, access your Liferay instance by typing in the browser:

      http://liferay123:8080

      Follow the previous steps to preview the sitemap.

      If you take a look at the generated urls you will see that they are generated like this (the i18n path is at the end of the url which is wrong):

      http://localhost:8080/web/guest/blogs/es

      In addition to sitemap, this also affects canonical urls and alternate urls.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 29 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1