From 998ff73531f3b44cb8bbab97bb39e37873833ec3 Mon Sep 17 00:00:00 2001 From: Kyle Martinez Date: Thu, 4 Jun 2026 17:01:52 -0500 Subject: [PATCH 1/2] use history api to avoid page refresh --- docs/_static/extensibility-directory.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/_static/extensibility-directory.js b/docs/_static/extensibility-directory.js index 597b475..e503556 100644 --- a/docs/_static/extensibility-directory.js +++ b/docs/_static/extensibility-directory.js @@ -342,7 +342,9 @@ function updateSearchParam(name, value) { value = value.replace(/\s/g, "-").toLowerCase(); searchParams.set(name, value); - window.location.search = searchParams; + + const url = window.location.pathname + "?" + searchParams.toString() + window.location.hash; + window.history.replaceState({ name: name, value: value }, "", url); } /** From 48a4353a26ced7596f49e3ca2cd7f422964073cb Mon Sep 17 00:00:00 2001 From: Kyle Martinez Date: Thu, 4 Jun 2026 17:02:10 -0500 Subject: [PATCH 2/2] avoid crash when missing params --- docs/_static/extensibility-directory.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/_static/extensibility-directory.js b/docs/_static/extensibility-directory.js index e503556..7f08580 100644 --- a/docs/_static/extensibility-directory.js +++ b/docs/_static/extensibility-directory.js @@ -324,8 +324,10 @@ window.onload = function () { const searchParams = new URLSearchParams(url); const filterType = searchParams.has("app") ? "app" : searchParams.has("tag") ? "tag" : ""; - const filter = searchParams.get(filterType).split("-").join(" "); - filterList(filter); + if (filterType) { + const filter = searchParams.get(filterType).split("-").join(" "); + filterList(filter); + } }; /**