From 1429357924296985c2c0b386b6aa1a145d7ea6a8 Mon Sep 17 00:00:00 2001 From: SysAdmin Agent Date: Sun, 5 Apr 2026 10:45:49 +0000 Subject: [PATCH] Fix nginx: remove broken font path rewrite that caused double fonts/ in URL (STI-91) The sub_filter rule '../fonts/' -> 'fonts/' was rewriting relative font paths in CSS served from /ahnenforschung/fonts/fonts.css. This caused the browser to resolve font URLs to /ahnenforschung/fonts/fonts/MaterialIcons.woff2 (double fonts/ directory). The original ../fonts/ paths resolve correctly from the subpath without rewriting. Co-Authored-By: Paperclip --- deploy-production/nginx.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deploy-production/nginx.conf b/deploy-production/nginx.conf index 9ecd078..065ed2b 100644 --- a/deploy-production/nginx.conf +++ b/deploy-production/nginx.conf @@ -126,8 +126,7 @@ server { # JS: service worker route handling sub_filter 'createHandlerBoundToURL("/index.html")' 'createHandlerBoundToURL("/ahnenforschung/index.html")'; - # CSS: fix relative font paths (served from subpath, ../fonts/ won't resolve) - sub_filter '../fonts/' 'fonts/'; + # CSS: font paths — ../fonts/ resolves correctly from subpath, no rewrite needed # WebSocket support proxy_http_version 1.1;