'More results' not working correctly when more than one search at the page

Issue #29 resolved
Patrick Forssell created an issue

Hello, we have two search bars, one for searching within the space and one is for all confluence content in the same page. The issue is when trying to display more results, it will open results to the wrong search.

How to recreate:

  • Confluence Data Center 7.19.19
  • Install plugins: Refined for Confluence 7.4.2, Instant Search 2.9.0
  • Create an advanced theme and Edit top.vm add snippet under #originaltheme_search() and comment out ##originaltheme_search()

    ##originaltheme_search() $helper.renderConfluenceMacro("{instantsearch:excerptLength=0|hideExcerptMacro=true|watermark=Search...|watermarkClass=watermark|showSearchButton=false|limit=20|showSpaceKey=true|tabOrder=1}") * Add another search Space layout go to Refined Administration → Layouts → Space layout and edit global space layout. Add instantsearch to global space layout to search from @self * Now go to a space and search something within the space using the search that you added to space layout. If there is more results than can fit in the results and you click ‘+More results' it will open the other search results and the results do not match.

I see that both searches have unique plugin_instantsearch_returnedSearchResult-<id> ID class, but for some reason it doesn’t function properly. When clicking '+More results' it opens the other searches plugin_instantsearch_returnedSearchResult box

Comments (4)

  1. Log in to comment