Skip to content

Commit

Permalink
add location.search back
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Burman committed May 7, 2024
1 parent 9474d9a commit a81878b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion climbdex/static/js/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function drawResultsPage(results, pageNumber, pageSize, resultsCount) {
}

const backAnchor = document.getElementById("anchor-back");
backAnchor.href = location.origin + "/filter";
backAnchor.href = location.origin + "/filter" + location.search;
if (document.referrer && new URL(document.referrer).origin == location.origin) {
backAnchor.addEventListener("click", function (event) {
event.preventDefault();
Expand Down

0 comments on commit a81878b

Please sign in to comment.