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

Missing language parameter when generating _ez_content_view route

    XMLWordPrintable

Details

    Description

      In the file, at the location specified

      https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/MVC/Symfony/Routing/Generator/UrlAliasGenerator.php#L128-L131

      It tries to build a route, but is missing a mandatory parameter `language`

      From EZP-26042:


      When trying to generate the URL for content which does not have any of the translations specified for current siteaccess and is not always available, the following error is thrown:

      Some mandatory parameters are missing ("language") to generate a URL for route "_ez_content_view"
      

      The most common reason why this happens (and hardest to debug) is when a content embeds or links to another content which does not have proper translations.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ireynolds ireynolds
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: