Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15452

Preview links are not being generated for resources

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 14.7.8
    • None
    • None
    • Flagged
    • Orion
    • Ready for refinement
    • Undetermined

    Description

      Currently use mounts of 'hst:type = preview' type (as indicated in https://xmdocumentation.bloomreach.com/library/concepts/security/authorization-use-cases/add-a-preview-channel-and-limit-access.html) to preview channel pages outside CMS experience manager.

      The internal document URLs generated by '<@hst.link />' tag generates the preview URLs correctly with the preview mount path included in the URL (e.g. http://localhost:8080/site/preview/page1, where '/preview' is the preview mount name).

      But, this doesn't work for resources (like .pdf, .doc, etc) and '<@hst.link />' tag always generates the live version of the file.

      Expected:
      http://localhost:8080/site/preview/binaries/content/documents/lks/common/file-links-cards/downloads/downloads/hee%3AfileLinks/hee%3Afile?forceDownload=true

      Actually generated: http://localhost:8080/site/binaries/content/documents/lks/common/file-links-cards/downloads/downloads/hee%3AfileLinks/hee%3Afile?forceDownload=true

      Here is the snippet the customer currently used to generate the resource URL (for reference):
      <@hst.link var="fileURL" hippobean=${fileBean}>
      <@hst.param name="forceDownload" value="true"/>

       

      bean type - 'org.hippoecm.hst.content.beans.standard.HippoResourceBean'.

       

      Attachments

        Issue Links

          Activity

            People

              deniz.ergun Deniz Ergun
              pselvam Pradeep Selvam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: