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

Language Selector portlet redirection is not working as expected when using virtual hosts

    Details

      Description

      The Language Selection portlet does not redirect properly when using a virtual host for private pages. This specifically occurs when a Language Selection portlet is being used on a public page and the user is navigating this public page via the virtual host.

      Steps to Reproduce

      1. Startup DXP
      2. Create a new public page for default site with name "Login" and friendly url "/login".
      3. Create a new private page with an arbitrary name.
      4. Set virtual host for private pages of that site to an arbitrary hostname (From now on let's assume it is "test.dev").
      5. Put the language portlet onto the just created page "Login".
      6. Open "test.dev:8080". You should automatically get redirected to the login page.
      7. Use the language portlet to change the language.

      Expected behavior:
      The page is shown with the selected language.

      Actual behavior:
      You get redirected to an error page showing that the current page is not available.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 32 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP36
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  7.0.X
                  7.1.0 M1
                  7.1.X
                  Master