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

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: 5.4-dev
    • Component/s: None
    • Labels:
      None
    • Environment:

      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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              wizhippo Douglas Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: