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

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Component/s: Platform stack
    • Labels:

      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

            Assignee:
            Unassigned
            Reporter:
            rinda René Hrdina
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: