Skip to content

Commit 5c71b3b

Browse files
author
Mathieu Hélie
committed
Merge branch 'MDW-471-autocomplete-broken'
2 parents 35fb5f2 + 591c7c8 commit 5c71b3b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/apps/drupal/drupal.j2

+5
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,11 @@ location = /monitor/index.php {
471471
fastcgi_pass phpcgi;
472472
}
473473

474+
## Rewrite legacy requests with /index.php to extension-free URL.
475+
if ( $args ~* "^q=(?<query_value>.*)" ) {
476+
rewrite ^/index.php$ $scheme://$host/?q=$query_value? permanent;
477+
}
478+
474479
{% if nginx_drupal_use_boost %}
475480
## Boost stats.
476481
location = /boost_stats.php {

0 commit comments

Comments
 (0)