diff --git a/contrib/search_api_views/includes/query.inc b/contrib/search_api_views/includes/query.inc
index 1af1f08..ff21e1d 100644
--- a/contrib/search_api_views/includes/query.inc
+++ b/contrib/search_api_views/includes/query.inc
@@ -316,6 +316,11 @@ class SearchApiViewsQuery extends views_plugin_query {
 
       $start = microtime(TRUE);
 
+      // Make sure base path is set correctly.
+      if ($this->query->getOption('search_api_base_path') == NULL) {
+        $this->query->setOption('search_api_base_path', $this->view->get_url());
+      }
+
       // Execute the search.
       $results = $this->query->execute();
       $this->search_api_results = $results;
