@@ -341,9 +341,6 @@ const generateSingleResult = (resultData, projectName) => {
341
341
</a>' ;
342
342
343
343
let page_link = `${ resultData . link } ${ DOCUMENTATION_OPTIONS . FILE_SUFFIX } ` ;
344
- let page_link_highlight =
345
- page_link + "?highlight=" + encodeURIComponent ( SEARCH_QUERY ) ;
346
-
347
344
let page_title = resultData . title ;
348
345
349
346
// if title is present in highlighted field, use that.
@@ -374,7 +371,7 @@ const generateSingleResult = (resultData, projectName) => {
374
371
page_title += "<br>" ;
375
372
376
373
content . innerHTML += $u . template ( page_link_template , {
377
- page_link : page_link_highlight ,
374
+ page_link : page_link ,
378
375
page_title : page_title
379
376
} ) ;
380
377
@@ -386,12 +383,12 @@ const generateSingleResult = (resultData, projectName) => {
386
383
if ( type === "sections" ) {
387
384
html_structure = get_section_html (
388
385
resultData . inner_hits [ i ] ,
389
- page_link_highlight
386
+ page_link
390
387
) ;
391
388
} else if ( type === "domains" ) {
392
389
html_structure = get_domain_html (
393
390
resultData . inner_hits [ i ] ,
394
- page_link_highlight
391
+ page_link
395
392
) ;
396
393
}
397
394
content . innerHTML += html_structure ;
@@ -823,6 +820,8 @@ window.addEventListener("DOMContentLoaded", evt => {
823
820
search_outer_input . dispatchEvent ( event ) ;
824
821
}
825
822
} else {
826
- console . log ( "[INFO] Docs are not being served on Read the Docs, readthedocs-sphinx-search will not work." )
823
+ console . log (
824
+ "[INFO] Docs are not being served on Read the Docs, readthedocs-sphinx-search will not work."
825
+ ) ;
827
826
}
828
827
} ) ;
0 commit comments