Commit d3ee8091 authored by omega8cc's avatar omega8cc

Nginx: Workaround for broken autocomplete

More details at: https://www.drupal.org/node/2599326
parent 7526aae2
......@@ -1050,6 +1050,14 @@ location ~ ^/(?<esi>esi/.*)"$ {
expires epoch;
}
###
### Workaround for https://www.drupal.org/node/2599326.
###
if ( $args ~* "/autocomplete/" ) {
return 405;
error_page 405 = @drupal;
}
###
### Rewrite legacy requests with /index.php to extension-free URL.
###
......
......@@ -842,6 +842,14 @@ location ^~ /<?php print $subdir; ?> {
<?php endif; ?>
<?php if ($satellite_mode == 'boa'): ?>
###
### Workaround for https://www.drupal.org/node/2599326.
###
if ( $args ~* "/autocomplete/" ) {
return 405;
error_page 405 = @drupal_<?php print $subdir; ?>;
}
###
### Rewrite legacy requests with /index.php to extension-free URL.
###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment