Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23978

URLs in legacy_mode lose siteaccess uri when index_page is used

    XMLWordPrintable

Details

    Description

      When a legacy siteaccess is configured with a URI part, and the index_page setting is used, accessing the index page will generate uris without the siteaccess uri part.

      Reproducing:

      Using the following example configuration:

          siteaccess:
              match:
                  Compound\LogicalAnd:
                      ezdemo_site:
                          matchers:
                              Map\URI:
                                  demo: true
                              Map\Host:
                                  www.host.local: true
                          match: ezdemo_site
                  Map\Host:
                      admin.host.local: ezdemo_site_admin
                      www.host.local: eng
      ...
          system:
              ezdemo_site:
                  languages:
                      - eng-GB
                  legacy_mode: true
                  index_page: content/dashboard
                  default_page: content/dashboard
      
      • (Optional): add an output of ezurl() call to legacy pagelayout:
        <div>
            <h3>The the generated ezurl() is: {'content/action'|ezurl()}</h3>
        </div>
        
      • Clear caches, access http://www.host.local/demo
      Result:

      The generated urls will NOT start with "/demo" as they should
      For example, the uri for "content/action" should be "/demo/content/action"

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: