diff --git a/html/js/search.js b/html/js/search.js
index a9ab1482fc..a14146b897 100644
--- a/html/js/search.js
+++ b/html/js/search.js
@@ -22,6 +22,10 @@ const searchClient = typesenseInstantsearchAdapter.searchClient;
const search = instantsearch({
searchClient,
indexName: project_collection_name,
+ routing: {
+ router: instantsearch.routers.history(),
+ stateMapping: instantsearch.stateMappings.simple(),
+ },
});
search.addWidgets([
diff --git a/templates/partials/nav.j2 b/templates/partials/nav.j2
index fb7d60f737..67ccb8c30a 100644
--- a/templates/partials/nav.j2
+++ b/templates/partials/nav.j2
@@ -1,14 +1,15 @@