Skip to content

Commit

Permalink
fix: Preventing default behavior when going back
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Dec 6, 2021
1 parent ae021ae commit 333a43a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/ketchup/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@
const link = document.getElementById("go-back");
if (link) {
link.setAttribute("href", document.referrer);
link.addEventListener("click", () => {
link.addEventListener("click", (e) => {
e.preventDefault();
history.back();
return false;
});
Expand Down

0 comments on commit 333a43a

Please sign in to comment.