Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1343

Relative image paths produced by <cms:out> result in broken images for certain URLs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.5 RC2
    • 3.0.1
    • taglibs
    • None

      When outputting the content from a fckEdit control with <cms:out>, the link and image paths are made relative by the taglib. This works ok when accessing the page via a URL like "/foo.html" or "/foo", but when accessing the page via a URL like "/foo/" (with the ending slash) the relative image path results in a broken image.

      To fix in my local environment, I adapted the code from info.magnolia.cms.gui.dialog.DialogFckEdit.convertToView(String), which makes the href and img paths absolute for the fckEdit window, for info.magnolia.cms.taglibs.Out, so that image paths are made absolute when outputting the content with <cms:out>.

        Acceptance criteria

              pbaerfuss Philipp Bärfuss
              mirandajones Miranda Jones
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD