diff --git a/apachesolr_search.module b/apachesolr_search.module index cbb2a4a..c73d863 100644 --- a/apachesolr_search.module +++ b/apachesolr_search.module @@ -44,6 +44,14 @@ function apachesolr_search_init() { $paths = array(); $paths[] = drupal_strtolower(drupal_get_path_alias($_GET['q'])); $paths[] = drupal_strtolower($_GET['q']); + + // Do not continue if the current path is the default search path. + foreach ($paths as $path) { + if (drupal_match_path($path, $search_page['search_path'] . '*')) { + return; + } + } + $facet_pages = apachesolr_environment_variable_get($search_page['env_id'], 'apachesolr_search_facet_pages', ''); // Iterates over each environment to check if an empty query should be run.