Skip to content

Commit 998ff73

Browse files
committed
use history api to avoid page refresh
1 parent 49b3f79 commit 998ff73

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎docs/_static/extensibility-directory.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,9 @@ function updateSearchParam(name, value) {
342342
value = value.replace(/\s/g, "-").toLowerCase();
343343

344344
searchParams.set(name, value);
345-
window.location.search = searchParams;
345+
346+
const url = window.location.pathname + "?" + searchParams.toString() + window.location.hash;
347+
window.history.replaceState({ name: name, value: value }, "", url);
346348
}
347349

348350
/**

0 commit comments

Comments
 (0)