From 4927b6670d63ffde8212990e5aa4ef16f89ff55f Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 15 Feb 2026 17:59:03 -0600 Subject: [PATCH] fix: remove $uri/ from nginx try_files to prevent /guide directory redirect (refs #203) The /guide SPA route conflicts with the static /guide/ screenshot directory. Nginx's try_files $uri/ matches the directory and issues a 301 redirect to /guide/ with trailing slash, bypassing SPA routing. Removing $uri/ ensures all non-file paths fall through to index.html for client-side routing. Co-Authored-By: Claude Opus 4.6 --- frontend/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index ee13d06..71dd051 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -19,7 +19,7 @@ http { # Handle client-side routing location / { - try_files $uri $uri/ /index.html; + try_files $uri /index.html; } # Enable gzip compression