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

Cross Siteaccess links not working properly

    Details

      Description

      Currently if you try to generate a cross siteaccess link the path of the target siteaccess isn't cut off from the generated Url.

      This is caused because rootLocationId in here https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/MVC/Symfony/Routing/Generator/UrlAliasGenerator.php#L109 is set to the current siteaccess's locationId.

      Therefore the wrong path prefix is generated.

      Somehow rootLocationId in this context should be set for the specified target siteaccess and not used from here https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Bundle/EzPublishCoreBundle/EventListener/RoutingListener.php#L57

      See my dirty hack (don't fix it this way): https://gist.github.com/bennyklotz/85747cd3b08ab963580e

        Issue Links

          Activity

          Benjamin Klotz created issue -
          Jérôme Vieilledent (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          Jérôme Vieilledent (Inactive) made changes -
          Assignee Jérôme Vieilledent [ jerome.vieilledent@ez.no ]
          Jérôme Vieilledent (Inactive) made changes -
          Labels linkGeneration routing
          Fix Version/s 5.3.4 [ 13879 ]
          Fix Version/s 5.4 [ 13180 ]
          Affects Version/s 2014.07 [ 13481 ]
          Affects Version/s 5.3 [ 11282 ]
          Affects Version/s 5.4-dev [ 13485 ]
          Component/s Symfony stack [ 10303 ]
          Jérôme Vieilledent (Inactive) made changes -
          Link This issue relates to EZP-20305 [ EZP-20305 ]
          André Rømcke made changes -
          Fix Version/s 5.4.0-rc1 [ 13883 ]
          Fix Version/s 5.4.0-beta1 [ 13180 ]
          Fix Version/s 5.3.4 [ 13879 ]
          André Rømcke made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          André Rømcke made changes -
          Fix Version/s Engineering tracked issues [ 11179 ]
          André Rømcke made changes -
          Fix Version/s 5.4.0-rc1 [ 13883 ]
          André Rømcke made changes -
          Link This issue relates to EZP-23725 [ EZP-23725 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 64790 ] EZ* Development Workflow [ 69781 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development [ 3 ] Development Review done [ 10028 ]
          Assignee Jérôme Vieilledent [ jerome.vieilledent@ez.no ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development Review done [ 10028 ] Documentation Review done [ 10011 ]
          Miguel das Neves Jacinto (Inactive) made changes -
          Status Documentation Review done [ 10011 ] QA [ 10008 ]
          Jérôme Vieilledent (Inactive) made changes -
          Link This issue duplicates EZP-24399 [ EZP-24399 ]
          Jérôme Vieilledent (Inactive) made changes -
          Assignee Miguel das Neves Jacinto [ miguel.jacinto@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Duplicate [ 3 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 69781 ] EZEE Development Workflow [ 124234 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Benjamin Klotz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: