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

Generating nice urls from twig template does not work in command context

    XMLWordPrintable

Details

    Description

      When rendering a template from a symfony command no nice urls will be output without explicitly specifying the siteaccess in the twig template.

      Unable to find source-code formatter for language: twig. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      {{ path( 'ez_urlalias', {'locationId': 630}) }}`
      

      will output something like /view/content/597/full/1/630

      Unable to find source-code formatter for language: twig. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      {{ path( 'ez_urlalias', {'locationId': 630, 'siteaccess': 'ger'}) }}` 
      

      will output the nice url for that siteaccess.

      Specifying the siteaccess via --siteaccess=ger flag on command line will not help.

      Attachments

        Activity

          People

            Unassigned Unassigned
            b0a89b08-d9b1-434b-bcc0-580f19dd96ea@accounts.ibexa.co René Hrdina
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: