Loading custom_search.module +1 −1 Original line number Diff line number Diff line Loading @@ -219,7 +219,7 @@ function custom_search_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $ $config = \Drupal::config('custom_search.results')->getRawData(); $page_config = FALSE; $path = substr(\Drupal::request()->server->get('REDIRECT_URL'), 7 + strlen(base_path())); $path = substr(\Drupal::request()->getPathInfo(), 8); // Search for the config of this page foreach ($config as $c) { Loading Loading
custom_search.module +1 −1 Original line number Diff line number Diff line Loading @@ -219,7 +219,7 @@ function custom_search_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $ $config = \Drupal::config('custom_search.results')->getRawData(); $page_config = FALSE; $path = substr(\Drupal::request()->server->get('REDIRECT_URL'), 7 + strlen(base_path())); $path = substr(\Drupal::request()->getPathInfo(), 8); // Search for the config of this page foreach ($config as $c) { Loading