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

Previewing a pending/draft content cause error linked to canonical link inserted

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.3-dev
    • Fix Version/s: 5.3
    • Component/s: DemoBundle
    • Labels:
      None

      Description

      When trying to preview a content in pending/draft status, it raise an error saying that :

      <code>An exception has been thrown during the rendering of a template ("When generating an UrlAlias route, either 'location' or 'locationId must be provided.") in eZDemoBundle::page_head.html.twig at line 21.
      </code>

      steps to reproduce:

      • activate workflow Wait until date
      • publish a content with a publish_date in the futur
      • try to reach /content/versionview/#locID/1

      Introduced in EZP-22610

        Issue Links

          Activity

          Show
          Yannick Roger (Inactive) added a comment - PR: https://github.com/ezsystems/DemoBundle/pull/72
          Show
          Yannick Roger (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/DemoBundle/commit/9127846c2e99d72cf3449a7ec4d05e8863cd7de0

            People

            • Assignee:
              Unassigned
              Reporter:
              Florent Huck (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: