Skip to content

Commit ac246e3

Browse files
committedJan 15, 2014
additional check for drupal routes.
1 parent e5aae16 commit ac246e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎EventListener/BootstrapListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function onKernelRequestBeforeRouter(GetResponseEvent $event)
108108
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
109109

110110
$request = $event->getRequest();
111-
if (!$request->attributes->get('_drupal', false)) {
111+
if (!$request->attributes->get('_drupal', false) && !empty($request->query->get('q', ''))) {
112112

113113
// The 'q' variable is pervasive in Drupal, so it's best to just keep
114114
// it even though it's very un-Symfony.

0 commit comments

Comments
 (0)
Please sign in to comment.