Repository navigation
Website: /guides, /mixers and /images no longer redirect in a loop - #1303
Merged
Merged
Conversation
Skeyelab
enabled auto-merge (squash)
December 3, 2026 06:53
Each is a folder in the export, not a page. nginx redirected /guides to /guides/ (its own folder rule), and the trailing-slash rule sent /guides/ back to /guides, forever: a browser showed "too many redirects". - /guides and /guides/ go to the guides hub, /guides/record (301). - The catch-all location no longer tries a folder, so /mixers, /images and /_next are a 404. "/" is unchanged. tests/nginx-redirects.sh checks these against the real nginx in CI; tests/folderRedirects.test.ts pins the rules. The nginx rules were not run locally (no Docker on this machine). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ
Without "$uri/" in try_files the catch-all location does not find "/", which is a folder too (the same change on soundcheckplayer.app answered 404 for the home page in CI). "location = /" serves index.html directly, and tests/nginx-redirects.sh checks "/" with and without a query string. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ
Skeyelab
force-pushed
the
seo-guides-redirect-loop
branch
from
December 3, 2026 07:08
96ac0d4 to
f3de6f6
Compare
|
The preview deployment for showrecorder-site failed. 🔴 Open Build Logs | Open Application Logs Last updated at: 2026-12-03 07:10:58 CET |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
On the live site,
/guides,/mixers,/imagesand/_nextredirect forever. Each is a folder in the export, not a page. nginx redirects/guidesto/guides/(its own folder rule), and our trailing-slash rule sends/guides/back to/guides. A browser shows "too many redirects"./guidesmatters most: it is the parent of every guide address, and people shorten addresses by hand./guidesand/guides/now go to the guides hub,/guides/record(301).$uri/is gone from itstry_files), so/mixers,/imagesand/_nextare a plain 404./and every page are unchanged: pages were always served from$uri.html./mixers/location, with its mistyped-mixer redirect, is not touched.Checked
tests/nginx-redirects.shhas ten new cases (/,/mixers,/images,/guidesand their slash forms, and a guide page). CI runs it against the real nginx image.tests/folderRedirects.test.ts(new) pins the two rules innginx.conf.VERIFY_QUICK=1 ./scripts/verify.sh: spelling passes; the site step fails on two tests that are already failing onmain(autoGainDoc,channelArmingCopyread Swift files that moved to ShowKit; Site tests: two checks no longer read Swift files that moved to ShowKit #1301 and Website tests: the two facts that moved to ShowKit are checked against its pinned version #1302 fix that). Everything else passes, and this PR needs one of those merged first.🤖 Generated with Claude Code
https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ