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

When using alternate tree_root all requests are handled by legacycontroller

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: High High
    • 5.4-dev
    • None
    • None
    • Ubuntu Linux, postgresql

    Description

      From a fresh install if you add to the default eng siteaccess. (You will also have to modify ezDemoBundle::page_footer.twig and comment out the call to the eZDemoBundle:Footer:latestContent)

                  content:
                      tree_root:
                          location_id: 74
      

      All requests will be processed by the legacycontroller. The issue seems to be a prefix is added to the route as seen in the log:

      INFO - Router eZ\Bundle\EzPublishCoreBundle\Routing\UrlAliasRouter was not able to match, message "Could not find 'UrlAlias' with identifier 'Shopping/Shopping'"

      So it falls back to the legacycontroller.

      The prefix comes from the UrlAliasRouter calling
      $this->generator->getPathPrefixByRootLocationId( $this->rootLocationId )

      Attachments

        Activity

          People

            Unassigned Unassigned
            feb52ca2-9206-4fa9-818f-2c4dcf3f42b0@accounts.ibexa.co Douglas Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: