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

Use $xwiki.getSkinFile instead of explicit /xwiki path when loading css images in Main.SolrSearch

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 6.0-milestone-1
    • Fix Version/s: 6.0-milestone-1, 5.4.3
    • Component/s: Search - Solr
    • Labels:
      None
    • Difficulty:
      Trivial
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      In the StyleSheetExtension object of the Main.SolrSearch page a few icons are referenced like:

       background: transparent url("/xwiki/resources/icons/xwiki/search.png") left center no-repeat;
      

      If possible, it would be better to reference the icons via $xwiki.getSkinFile('icons/xwiki/search.png') in case XWiki is not deployed as /xwiki

        Attachments

          Activity

            People

            • Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              camil7 Clemens Robbenhaar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: