Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-1849

Landing Page preview doesn't work correctly when using Host Siteaccess Matcher for admin siteaccess

    Details

      Description

      If the Platform UI is accessed via Host (using Map\Host siteaccess matcher), then Landing Page preview doesn't work correctly.

      After clicking "Page" tab in the Admin UI, the preview iframe is loaded, but inside the iframe there is another instance of Admin UI loaded instead of correct Landing Page preview.
      From the menu on top, it is still possible to click on another siteaccess (different than the default one) or on "eZ Studio presentation" button and then the preview will work correctly.

      If the Editor goes to "Content"/"Content structure" first, selects a Landing Page, and then clicks on "Page", the following error is displayed (in dev mode):

      Twig_Error_Runtime:
      Variable "siteaccess" does not exist.
       
        at vendor\ezsystems\studio-ui-bundle\Resources\views\page\page.html.twig:63
      

      The issue might also happen when using other siteaccess matchers.

      Steps to reproduce

      1. Create a new eZ Platform v2 installation.
      2. Add the following configuration to your ezplatform.yml file:

        ezpublish:
            siteaccess:
                match:
                    URIElement: 1
                    Map\Host:
                        admin.your-site.example: admin
        

      3. Access your site via admin.your-site.example. Admin UI should be shown. Log in.
      4. Click on "Page". The loaded iframe will have another Admin UI instance instead of Landing Page preview.
      5. Go to "Content"/"Content structure" and then click on "Page" again. The error described above will be shown (in dev mode). In prod mode, there will be the same symptoms as in step 4

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        4m 6s 1 jacek.foremski@ez.no 24/Jan/18 1:18 PM
        Confirmed Confirmed InputQ InputQ
        4s 1 jacek.foremski@ez.no 24/Jan/18 1:18 PM
        InputQ InputQ Development Development
        32d 19h 38m 1 Adam Wójs 26/Feb/18 8:57 AM
        Development Development Development Review Development Review
        3d 5h 24m 1 Adam Wójs 01/Mar/18 2:21 PM
        Development Review Development Review Documentation Review done Documentation Review done
        18h 32m 1 Michał Szołtysek 02/Mar/18 8:54 AM
        Documentation Review done Documentation Review done QA QA
        6s 1 Michał Szołtysek 02/Mar/18 8:54 AM
        QA QA QA Done QA Done
        3h 18m 1 Michał Szołtysek 02/Mar/18 12:12 PM
        QA Done QA Done Closed Closed
        20d 9m 1 Michał Szołtysek 22/Mar/18 12:22 PM

          People

          • Assignee:
            Unassigned
            Reporter:
            Jacek Foremski (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: