From c130f9bcdf90d171883e8908f0131c421b52984a Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 15 Apr 2026 14:32:25 -0400 Subject: [PATCH] nginx: redirect /color-picker/* to /color/* Browsers with cached pages from the old /color-picker/ path resolve relative image URLs against that base, causing 404s after the rename. Co-Authored-By: Claude Sonnet 4.6 --- nginx/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index b1bc0e2..48c8bd3 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -27,6 +27,9 @@ http { add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; + # ── Redirect old color-picker URL ──────────────────────────────────────── + location ~ ^/color-picker(/.*)?$ { return 301 /color$1; } + # ── Redirects for legal pages (moved from main site into estore) ───────── location = /privacy { return 301 /shop/privacy; } location = /privacy/ { return 301 /shop/privacy; }