diff --git a/src/search.js b/src/search.js index a4fd566..189e9a1 100644 --- a/src/search.js +++ b/src/search.js @@ -530,7 +530,7 @@ export class SearchElement extends LitElement { const selected = this.renderRoot.querySelector("a.hit.active"); // if an item is selected, then redirect to its link if (selected !== null) { - window.location.href = selected.href; + selected.click(); } }