Skip to content

Commit

Permalink
Merge pull request #9551 from mgeier/remove-highlight-param
Browse files Browse the repository at this point in the history
"Hide Search Matches" removes "highlight" parameter from URL
  • Loading branch information
tk0miya committed Jan 13, 2022
2 parents ce6803a + 27db7f6 commit 3b494b0
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 3b494b0

Please sign in to comment.