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

Cannot create Landing Page with Map\Host matcher

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: High High
    • None
    • 1.13.1, 1.7.8
    • None
    • None

    Description

      Landing Page Editor displays a 404 Not Found in preview when trying to create a new Landing Page (when Map\Host site access matcher is used)

      Steps to reproduce
      1. Configure Map\Host siteaccess matcher.
      (app/config/ezplatform.yml changes)

          siteaccess:
              list: [site, nor, eng]
              groups:
                  site_group: [site, nor, eng]
              default_siteaccess: site
              match:
                  Map\Host:
                      nor.prod: nor
                      eng.prod: eng
                      platftr.clean: site
      

      (add entries to /etc/hosts if needed)
      2. Add Twig variable:
      on clean: add

         {{ multidomain_access() }}
      

      to file ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Resources/views/pagelayout.html.twig in the <head> section.
      3. Open eZ Platform, login as Admin
      4. Go to Page
      5. Click "Create"

      Expected:
      Landing Page creator appears

      Actual:
      Error 404 is displayed in the Landing Page preview.
      In the network tab the following is visible:
      GET http://platftr.clean/site/ 404 (Not Found)

      Note:
      Happens on 1.13.1 and on 1.7 branch, but not on 1.7.7

      Attachments

        Activity

          People

            Unassigned Unassigned
            marek.nocon@ibexa.co Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: