Skip to content

fix: redirect /dear-sir-demis-2025 from SvelteKit, not _redirects - #1231

Merged
hturnbull93 merged 1 commit into
mainfrom
fix-dear-sir-demis-redirect
Oct 19, 2026
Merged

hturnbull93 merged 1 commit into
mainfrom
fix-dear-sir-demis-redirect

Conversation

@hturnbull93

Copy link
Copy Markdown
Collaborator

Follow-up to #1228: https://pauseai.info/dear-sir-demis-2025 currently returns 404 instead of redirecting to https://pauseai.uk/campaigns/dear-sir-demis-2025.

Cause: the site renders through a Netlify edge function (USE_EDGE_FUNCTIONS = true), and Netlify runs edge functions before _redirects rules, so the _redirects entries never fire. /uk-email-mp works because its redirect lives in src/lib/redirects.ts, inside SvelteKit.

Fix: add /dear-sir-demis-2025 to REDIRECTS in src/lib/redirects.ts and remove the dead _redirects lines. Only English is enabled in production, so no /:lang/ variant is needed.

🤖 Generated with Claude Code

Netlify runs edge functions before _redirects rules, and this site
renders through an edge function, so the _redirects entries added in
#1228 never fired and the old URL returned 404. Move the redirect into
src/lib/redirects.ts alongside the /uk-email-mp ones and drop the dead
_redirects lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for pauseai ready!

Name Link
🔨 Latest commit 134651e
🔍 Latest deploy log https://app.netlify.com/projects/pauseai/deploys/6ad69ab47eb6a89ef98b266a
😎 Deploy Preview https://deploy-preview-1231--pauseai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 66 (🔴 down 18 from production)
Accessibility: 91 (no change from production)
Best Practices: 100 (no change from production)
SEO: 82 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hturnbull93
hturnbull93 merged commit 67bd543 into main Oct 19, 2026
9 checks passed
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.

1 participant