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 <noreply@anthropic.com>
This commit is contained in:
chris 2026-04-15 14:32:25 -04:00
parent e2d9ae7541
commit c130f9bcdf

View File

@ -27,6 +27,9 @@ http {
add_header X-Content-Type-Options "nosniff" always; add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" 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) ───────── # ── Redirects for legal pages (moved from main site into estore) ─────────
location = /privacy { return 301 /shop/privacy; } location = /privacy { return 301 /shop/privacy; }
location = /privacy/ { return 301 /shop/privacy; } location = /privacy/ { return 301 /shop/privacy; }