Skip to content

fix: redirect /posts/1 before the Turnstile gate - #14

Merged
comdotlinux merged 1 commit into
mainfrom
fix/turnstile-posts-1-redirect
Nov 12, 2026
Merged

comdotlinux merged 1 commit into
mainfrom
fix/turnstile-posts-1-redirect

Conversation

@gurukulkarni

Copy link
Copy Markdown
Collaborator

After #13, production answered /posts/1/ with 401: Pages Functions run before public/_redirects, so the gate caught the request first. The middleware now returns a 301 to /posts/ for /posts/1 and /posts/1/ before the session check. 2 new unit tests. Local checks: lint 0 errors, build 27 pages, unit 73 passed, e2e 96 passed, Lighthouse 99.7% avg. After merge: curl -sI https://blog.kulkarni.cloud/posts/1/ should return 301 with location: /posts/.

@comdotlinux
comdotlinux merged commit 0209b36 into main Nov 12, 2026
1 check passed
@comdotlinux
comdotlinux deleted the fix/turnstile-posts-1-redirect branch November 12, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants