diff --git a/output/main.js b/output/main.js index 775d081..175d414 100644 --- a/output/main.js +++ b/output/main.js @@ -719,9 +719,11 @@ async function useSearchTerm(rawTerm, fillSearchBarWithTerm = false) { } if (!rawTerm) { + location.hash = ""; replaceRowsWith(getAllCachedRows()); dom.search_bar()?.classList.remove(CLASSES.SEARCH.NO_RESULTS); } else { + location.hash = `q=${rawTerm}`; const term = rawTerm.toLowerCase().replace(/lang:(\S+)/g, "").trim(); const termTags = Array.from(rawTerm.matchAll(/#[^#\s]+/g)).map(match => match[0].slice(1).toLowerCase()); const termLanguage = rawTerm.match(/lang:(\S+)/)?.[1];