From 6757e4450c98c7cea90c6d70ab5b192b904c25f9 Mon Sep 17 00:00:00 2001
From: Kristian Klausen <kristian@klausen.dk>
Date: Sun, 23 Jan 2022 14:47:55 +0100
Subject: [PATCH] archwiki: workaround another hard-coded wgScriptPath in the
 new Vector theme

Without this change, "Search for pages containing" doesn't work.
---
 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 b2cb02255..102383aa2 100644
--- a/roles/archwiki/templates/nginx.d.conf.j2
+++ b/roles/archwiki/templates/nginx.d.conf.j2
@@ -80,6 +80,11 @@ server {
         return 302 /rest.php/v1/search/title$is_args$args;
     }
 
+    # Workaround for "Search for pages containing" hard-coded to /w/index.php
+    location ^~ /w/index.php {
+        return 302 /index.php$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