diff --git a/src/interface/web/index.html b/src/interface/web/index.html index df4d3187..09f23e27 100644 --- a/src/interface/web/index.html +++ b/src/interface/web/index.html @@ -121,6 +121,12 @@ }); } + function setTypeInQueryParam(type) { + var url = new URL(window.location.href); + url.searchParams.set("t", type.value); + window.history.pushState({}, "", url.href); + } + window.onload = function () { // Dynamically populate type dropdown based on enabled search types and type passed as URL query parameter populate_type_dropdown(); @@ -140,7 +146,7 @@
- +