Skip to content

Commit 32ecc35

Browse files
authored
Merge pull request #3207 from cncf/6-23
Don't store search increments in the browser history
2 parents 55e9c8f + e56ef08 commit 32ecc35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/_default/search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h1 class="thin">{{ .Title }}</h1>
5555

5656
var newUrl = baseUrl + "?" + urlParams.toString();
5757
// Update the browser history (optional)
58-
window.history.pushState({}, null, newUrl);
58+
history.replaceState(null, '', newUrl);
5959
}
6060
</script>
6161

0 commit comments

Comments
 (0)