From c19e3031df03ab96d10d86ece05840a36725c06d Mon Sep 17 00:00:00 2001 From: Kristian Klausen <kristian@klausen.dk> Date: Wed, 22 Dec 2021 18:55:56 +0100 Subject: [PATCH] archwiki: workaround hard-coded wgScriptPath in the new Vector theme[1] Without this change, search suggestions don't work. [1] https://phabricator.wikimedia.org/T288686 --- roles/archwiki/templates/nginx.d.conf.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/archwiki/templates/nginx.d.conf.j2 b/roles/archwiki/templates/nginx.d.conf.j2 index 81c87ba8f..b2cb02255 100644 --- a/roles/archwiki/templates/nginx.d.conf.j2 +++ b/roles/archwiki/templates/nginx.d.conf.j2 @@ -75,6 +75,11 @@ server { rewrite ^ /rest.php; } + # https://phabricator.wikimedia.org/T288686 + location ^~ /w/rest.php/v1/search/title { + return 302 /rest.php/v1/search/title$is_args$args; + } + # special case for '/load.php' type URLs to cache css/js in nginx to relieve php-fpm location = /load.php { access_log /var/log/nginx/{{ archwiki_domain }}/access.log main; -- GitLab