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

Home Friendly URL is not removed when you request for the instance virtualhost and the default site is not Guest

    Details

      Description

      Usually, if you access to the instance virtual host, you will get the configured home page but the friendly URL of this page is not present in the browser URL (see the comments in the step 7 for the property virtual.hosts.default.site.name). This is not the behavior when you use other site as Default Site.

      Steps to reproduce:

      1. Add mytest.com 127.0.0.1 to your /etc/hosts
      2. Go to instance settings and set mytest.com as virtualhost
      3. Configure /web/mytest.com/home as Home page of the instance (via Instance Settings)
      4. Create a new site: mytest.com
      5. Add two widget pages: One (the first) and Home . Make sure One is the first page of the site.
      6. Add one asset-publisher (to get a non-cacheable page) and the hello world portlet to each page, edit the hello world message and set the name of the page you are to make easier identify the page.
      7. Set mytest.com as default site
        #
        # Specify the site name that will default to the company's virtual host.
        # If the specified site has a virtual host, then that will take precedence.
        # If it does not, then it will use the company's virtual host. This property
        # is useful to remove "/web/guest" (or any other site) from the default URL.
        # For example, if this property is not set, then the default URL may be
        # http://localhost:8080/web/guest/home. If this property is set, then the
        # default URL may be http://localhost:8080/home.
        #
        # Env: LIFERAY_VIRTUAL_PERIOD_HOSTS_PERIOD_DEFAULT_PERIOD_SITE_PERIOD_NAME
        #
        virtual.hosts.default.site.name=mytest.com
        
      1. Restart the server
      2. Open http://mytest.com:8080 in a browser

        Result => The One page, but not the home page. (or the home page with its friendlyURL in the browser URL http://mytest.com:8080/web/mytest.com/home )
        Expected => The configured home page without friendlyURL in the browser URL: http://mytest.com:8080

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              jose.jimenez Jose Jimenez
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Engineering Assignee:
              SE Support
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                49 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 DXP FP91
                  7.0.10.14 DXP SP14
                  7.0.X
                  7.1.10 DXP FP18
                  7.1.10.5 SP5
                  7.1.X
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X
                  7.3.1 CE GA2
                  7.3.10 DXP GA1
                  Master