Uploaded image for project: 'Imaging'
  1. Imaging
  2. MGNLIMG-207

Get link for asset rendition should use image id instead of path

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • None
    • 3.4
    • None
    • None

    Description

      ${damfn.getAssetLink(content.image)} print a link to image which use asset uuid to recognise image, e.g.:

      /magnoliaAuthor/dam/jcr:9de89a2c-e2bb-4992-abdd-16a80166c8bf/3.jpeg 

      but

      ${damfn.getAssetLink(content.image,"6x4")} print the link which contains path to image, e.g.:

      /magnoliaAuthor/.imaging/mte/swissre/6x4/dam/test/placeholders/3.jpeg/jcr:content/3.jpeg

       

      There is few issues with this:

      1) if image is moved in dam, then old links (in emails, etc...) are not working anymore. but in additions it displays server error 500 ( instead of 404)

      2) not sure why url contains "mte" and "/jcr:content/3.jpeg" plus two times name of the file itself (3.jpg), especially dot "." in the midle of url may cause some treble in javascript or even is some browsers

      3) inconsistency between links without and with rendition 

       

      Checklists

        Acceptance criteria

        Attachments

          1. naming1.png
            naming1.png
            178 kB
          2. naming2.png
            naming2.png
            106 kB
          3. naming4.png
            naming4.png
            104 kB

          Activity

            People

              Unassigned Unassigned
              tgregovsky Tomáš Gregovský
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoR