Skip to content

Commit

Permalink
Don't store search increments in the browser history
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
  • Loading branch information
cjyabraham committed Oct 1, 2024
1 parent a1b2cf4 commit d3bf172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/layouts/_default/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 class="thin">{{ .Title }}</h1>

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

Expand Down

0 comments on commit d3bf172

Please sign in to comment.