diff --git a/src/Controller/FacetBlockAjaxController.php b/src/Controller/FacetBlockAjaxController.php
index 993a647..b27db89 100644
--- a/src/Controller/FacetBlockAjaxController.php
+++ b/src/Controller/FacetBlockAjaxController.php
@@ -116,6 +116,8 @@ class FacetBlockAjaxController extends ControllerBase {
 
     // Rebuild the request and the current path, needed for facets.
     $path = $request->request->get('facet_link');
+    // Remove base path if drupal is installed in a sub-directory.
+    $path = str_replace(base_path(), '/', $path);
     $facets_blocks = $request->request->get('facets_blocks');
 
     // Make sure we are not updating blocks multiple times.
