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

Demo bundle - wrong top left link to home of the demo site

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 5.1.0rc1, 5.1, 5.2-beta1
    • Component/s: DemoBundle
    • Labels:
      None
    • Environment:

      Mac OS10.8
      PHP5.3
      Accessing the site using Documentroot method

      Description

      I installed the demo bundle using the new stack.
      I am using documentroot method to access the site.
      The logo on the top left of the site brings user back to document root (http://localhost:8888) instead of bringing them back to home of the site (http://localhost:8888/ezpublish5.1rc1/web/).

        Issue Links

          Activity

          Hide
          Roland Benedetti added a comment -

          side note: I dont see any Component in Jira for the demo bundle, might be good to add one.

          Show
          Roland Benedetti added a comment - side note: I dont see any Component in Jira for the demo bundle, might be good to add one.
          Hide
          André Rømcke added a comment - - edited

          As for approach to solve this, JV will need to confirm, but as far as I got it we need to inject the root location (in case of multisite: content.tree_root.location_id defines the location, otherwise content root location which is usually location id 2) in the twig template to generate the correct path for it using path().

          The twig template causing this: https://github.com/ezsystems/DemoBundle/blob/master/Resources/views/page_header_logo.html.twig

          @Roland I have added the missing Component now.

          Show
          André Rømcke added a comment - - edited As for approach to solve this, JV will need to confirm, but as far as I got it we need to inject the root location (in case of multisite: content.tree_root.location_id defines the location, otherwise content root location which is usually location id 2) in the twig template to generate the correct path for it using path(). The twig template causing this: https://github.com/ezsystems/DemoBundle/blob/master/Resources/views/page_header_logo.html.twig @Roland I have added the missing Component now.
          Hide
          Roland Benedetti added a comment -

          thanks

          Show
          Roland Benedetti added a comment - thanks
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/DemoBundle/commit/ec5fdb999643d539d4bd06bc6d8cd423cf1f50fe
          Hide
          Joao Pingo (Inactive) added a comment -

          This was only tested on Master since eZDemo is not certified no back-ports for 5.1 and 5.2 are needed

          Show
          Joao Pingo (Inactive) added a comment - This was only tested on Master since eZDemo is not certified no back-ports for 5.1 and 5.2 are needed

            People

            • Assignee:
              Unassigned
              Reporter:
              Roland Benedetti
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h