diff --git a/src/interface/web/index.html b/src/interface/web/index.html
index d6cce98c..362aa5d0 100644
--- a/src/interface/web/index.html
+++ b/src/interface/web/index.html
@@ -86,6 +86,11 @@
else if (type !== "image") {
search(rerank=false);
}
+
+ // Fill search form with values passed in URL query parameters, if any.
+ window.onload = function () {
+ document.getElementById("type").value = new URLSearchParams(window.location.search).get("t") || "org";
+ document.getElementById("query").value = new URLSearchParams(window.location.search).get("q") || "What is the meaning of life?";
}
@@ -97,13 +102,13 @@
+ Set Default type to org-->