Style macro does not load images if their URL is wrapped in quotes

XMLWordPrintable

    • 1
    • Minor

      Issue Summary

      When using the style macro and setting a background image using CSS, if you link to an image and surround the URL with quotes it will cause that image to not load on the page.

       

      Steps to Reproduce

      1. On a page using the legacy editor, add the 'Style' macro
      2. Add CSS to the Style macro and try adding a background image like:

        background-image: url("/wiki/download/attachments/124157953/banner.png");

      3. Publish page

      Expected Results

      Background image loads as specified by CSS

      Actual Results

      Background image does not load

      Viewing network tab, the request URL shows up with the quotes being interpreted like:

      https://<Cloud URL>/wiki/spaces/SPACEKEY/pages/33751045/&quot;/wiki/download/attachments/124157953/banner.png&quot; 

      Workaround

      Edit the CSS and remove the quotes around the URL

            Assignee:
            Unassigned
            Reporter:
            Houston B.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: