Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13989

HTML Export will fail when SSX are inside several nested spaces

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.4.4
    • Fix Version/s: 9.0, 8.4.5
    • Component/s: Old Core - HTML Export
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The code is currently hardcoding the location of the ssx on file:

              // There can be some calls to URLs inside the SSX content. For example:
              //   background-image: url("$xwiki.getSkinFile('icons/silk/folder_add.png')");
              // In order for these URLs to be resolved correctly they need to be relative to where the CSS file is located
              // on disk. Thus we adjust the CSS path by 3 levels since we're locating the SSX files in "ssx/<space>/<page>".
              exportContext.pushCSSParentLevels(3);
      

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: