Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-251

Link Resolving of files located in DMS does not work -> link returns with ".html" instead of the file extension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0
    • 1.0
    • None

      When resolving a link from a file located within the dms repository, the link ends with .html and not with the file extension.

      For example if these methods are used:
      LinkUtil.createLink(repositoryId, uuid, true);
      LinkUtil.createAbsoluteLink(node, true);

      In the STKUtil class there is at the moment a hack class, that the paragraph template can use a method (no hack in the template).
      The hack method in STKUtil is:
      //TODO: This is a hack because of a link resolving problem within DMS. The JIRA task about this bug is: http://jira.magnolia-cms.com/browse/MGNLSTK-251
      public static String createImageLink(Document document)

      { return MgnlContext.getContextPath()+"/dms"+document.getLink(); }

        Acceptance criteria

              had Jan Haderka
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: