diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html
index 662ea1133c4d1df360397e5bca362a58fc2f4ca7..3b912c3228f14d541f5b34a07cee441e52b5cbef 100644
--- a/docs/_includes/footer.html
+++ b/docs/_includes/footer.html
@@ -43,7 +43,7 @@ SimpleJekyllSearch.init({
   resultsContainer: document.getElementById('search-results'),
   searchResultTemplate: '<a class="dropdown-item" href="{url}">{title}</a>',
   noResultsText: '<div class="dropdown-item no-results">Sorry, there are no results for that search.</div>',
-  json: '/search.json'
+  json: '{{ site.baseurl }}/search.json'
 })
 </script>
 {% endif %}