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

ezurl('','full') uses current $_SERVER['HTTP_POST'] for url generation

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.4.0
    • Misc
    • None

    Description

      Although it is publicly reported as working as so, in http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-operators/URLs/ezurl eZ documentation pages , this behavior doesn't seem to comply with users expectations.

      If one is generating content view cache, in a virtual host based installation, from the Admin Portal, the generated files will have the url pointing towards the Admin Portal site.

      A suggestion would be to use SiteURL value from site.ini to define hostname

      Steps to reproduce

      Modify a template to include a link such as:

      <a href={"atestlink"|ezurl('','full')}>test</a>
      

      Publish an object and preview it in the Admin Portal (make sure that the template changed above is used in the preview process)
      The generated cache file will present your Admin Portal hostname.

      Attachments

        Activity

          People

            unknown unknown
            joc@ez.no joc@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: