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

Inconsistent home page redirects for virtual host sites

Details

    Description

      Issue
      Inconsistent home page redirects behavior for virtual host sites (default site versus regular site).

      Steps to reproduce
      Environment: liferay-dxp-7.3.10.1-sp1
      1. Set the following configuration in portal-ext.properties

      company.default.home.url=/
      

      2. Add the following entries to your hosts file:

      127.0.0.1   my-site-aaa.dev.internal
      127.0.0.1   my-site-bbb.dev.internal
      

      3. Navigate to Liferay DXP Site

      Configuration > Site Settings > General > Site URL (Accordian), Public Pages (Virtual Host): my-site-aaa.dev.internal > Press: Save

      4. Create a new blank site: Site2

      Configuration > Site Settings > General > Site URL (Accordian), Public Pages (Virtual Host): my-site-bbb.dev.internal > Press: Save

      Add a new Public Page titled: Home > Press Publish

      5. Sign out

      Access URL: http://my-site-aaa.dev.internal:8080 > Sign In > URL defaults to: my-site-aaa.dev.internal:8080/home

      Access URL: http://my-site-bbb.dev.internal:8080 > Sign In > URL defaults to: my-site-bbb.dev.internal:8080/

      Expected result
      The default URL format is the same for both sites.

      Actual result

      • /home is appended to the default site's URL.
      • the URL for the regular site remains the same.

      Reproduced in

      • liferay-dxp-7.3.10.1-sp1
      • master
      • 7.3.x (abb7ec2d7f20aad6358c34d4081015369a2ea234)
      Access URL:
      http://my-site-aaa.dev.internal:8080/
      Signed in default URL:
      http://my-site-aaa.dev.internal:8080/home
      
      Access URL:
      http://my-site-bbb.dev.internal:8080/
      Signed in default URL:
      http://my-site-bbb.dev.internal:8080/

      Attachments

        Activity

          People

            summer.zhang Summer Zhang
            to.trinh To To Trinh
            Kiyoshi Lee Kiyoshi Lee
            To To Trinh To To Trinh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              22 weeks, 2 days ago

              Packages

                Version Package
                7.3.X
                7.4.3.22 CE GA22
                7.4.3.23 CE GA23
                Master