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

Wrong links generated when using Map\Host siteaccess matching

    XMLWordPrintable

Details

    Description

      This is a regression from EZP-21668.
      When using Map\Host for siteaccess matching, generated links from Location objects lack the leading /.

      Steps to reproduce

      With the following config, and using DemoBundle:

      ezpublish:
          siteaccess
              match:
                  Map\Host:
                      admin.ezpublish5.loc: ezdemo_site_admin
                      ezpublish5.loc: ezdemo_site_user
      

      The links in the top menu of the demo design are wrong when the user is on a page with some view parameters.

      1. Go to /Blog
      2. Click on the next link in the calendar
      3. Click on any element of the top menu

      The link points to /Blog/(month)/11/(year)/Something instead of /Something

      Note: the same issue is also valid for the Latest news links in the footer

      Attachments

        Activity

          People

            Unassigned Unassigned
            damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 30 minutes Original Estimate - 30 minutes
                30m
                Remaining:
                Time Spent - 2 hours, 30 minutes Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - 2 hours, 30 minutes Remaining Estimate - 30 minutes
                2h 30m