Skip to content

Commit 9bfb983

Browse files
committed
[MDW-471] Add configuration for broken autocomplete.
1 parent 0625176 commit 9bfb983

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/apps/drupal/drupal.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,3 +412,10 @@ location ~* ^.+\.php$ {
412412
location = /monitor/index.php {
413413
fastcgi_pass phpcgi;
414414
}
415+
416+
###
417+
### Rewrite legacy requests with /index.php to extension-free URL.
418+
###
419+
if ( $args ~* "^q=(?<query_value>.*)" ) {
420+
rewrite ^/index.php$ $scheme://$host/?q=$query_value? permanent;
421+
}

0 commit comments

Comments
 (0)