Skip to content

Commit

Permalink
"Hide Search Matches" removes "highlight" parameter from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Aug 15, 2021
1 parent 8afe6ed commit 27db7f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sphinx/themes/basic/static/doctools.js
Expand Up @@ -264,6 +264,9 @@ var Documentation = {
hideSearchWords : function() {
$('#searchbox .highlight-link').fadeOut(300);
$('span.highlighted').removeClass('highlighted');
var url = new URL(window.location);
url.searchParams.delete('highlight');
window.history.replaceState({}, '', url);
},

/**
Expand Down

0 comments on commit 27db7f6

Please sign in to comment.