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

lang attribute in html element is not correct in edge scenarios

    Details

      Description

      When the user has set the language (e.g. using the language portlet) and then is sent to a page which uses the friendly url language filter the attribute 'lang' of the 'html' starting tag (<html lang="xx-XX">...) is not correct.

      To reproduce (as guest):

      • go to a page which has a language portlet and choose a language (e.g. en-US)
      • go to the same page using domain:port/yy-YY where yy-YY is a language different from the previous one (e.g. localhost:8080/it/)
      • inspect the page (or the source) and you'll see that the page starts with (eg):
        <html ...... lang="en-US">
        while the content of the page is in the other language (it-IT in the example)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ginson.ren Ginson Ren
              Reporter:
              pierpaolo Pier Paolo Ramon (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 8 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  --Sprint 11/12
                  6.2.0 CE M2