Fix nginx: remove broken font path rewrite that caused double fonts/ in URL (STI-91)
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy (push) Has been cancelled
Code Quality / quality (push) Has been cancelled

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 <noreply@paperclip.ing>
This commit is contained in:
SysAdmin Agent
2026-04-05 10:45:49 +00:00
parent 3c7c472e64
commit 1429357924

View File

@@ -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;