Relative url in css loaded as add-on web-resource

XMLWordPrintable

      Hi,
      In our add-on we are including a css files that refers to fonts using a relative path. The fonts are also included in the add-on.

      After being served by the Confluence server the css refer to a cache directory and the browser is not able to find the referred font (i.e. opensans-regular-webfont.woff).

      @font-face {
          src: url('/confluence/s/en_GB/7109/NOCACHE/999.999/_/download/resources/com.balsamiq.confluence.plugins.mockups:balsamiqWireframesEditor/opensans-regular-webfont.woff') format('woff'), url("/confluence/s/en_GB/7109/NOCACHE/999.999/_/download/resources/com.balsamiq.confluence.plugins.mockups:balsamiqWireframesEditor/OpenSans-Regular.ttf") format('truetype');
          font-family: "Open Sans";
          font-weight: normal;
          font-style: normal;
      }
      

      The font is reachable by the following URL:

      /confluence/download/resources/com.balsamiq.confluence.plugins.mockups:balsamiqWireframesEditor/fonts/opensans/opensans-regular-webfont.woff
      

      The web resources are declared in the manifest in this way

      <web-resource key="balsamiqWireframesEditor" >
      		<resource type="download" name="fonts/opensans/opensans.css" location="editor-b4/fonts/opensans/opensans.css"/>
      		<resource type="download" name="fonts/opensans/opensans-regular-webfont.woff" location="editor-b4/fonts/opensans/opensans-regular-webfont.woff"/>
      ....
      

      Is there a way to solve this issue?

              Assignee:
              Unassigned
              Reporter:
              Salvatore "Sax" Cammarata
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: