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

XWiki.SearchSuggestCode is loaded too early

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      XWiki.SearchSuggestCode was introduced in XWIKI-22155

      Reproduction steps

      1. Visit http://localhost:8080/xwiki/bin/view/Sandbox/
      2. open the browser debugger and make sure "disabled cache" is unchecked
      3. Click on Sandbox Test Page 1 to go to http://localhost:8080/xwiki/bin/view/Sandbox/TestPage1
      4. check the network tab

      Expected

      http://localhost:8080/xwiki/bin/get/XWiki/SearchSuggestCode is not called unless the user needs to make a search

      Actual

      http://localhost:8080/xwiki/bin/get/XWiki/SearchSuggestCode is called preemptively whenever the user visits a page.
      This remote call should only be performed when the user starts using the search.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: