Skip to content

Fix infinite redirect loops on two blog posts - #5588

Merged
sumitshinde-84 merged 2 commits into
mainfrom
fix/blog/modbus-redirect
Aug 13, 2026
Merged

Fix infinite redirect loops on two blog posts#5588
sumitshinde-84 merged 2 commits into
mainfrom
fix/blog/modbus-redirect

Conversation

@Yndira-E

@Yndira-E Yndira-E commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Description

  • Two blog posts were rendering empty (or 404ing), with the browser reporting an infinite redirect loop:
    • /blog/2023/05/integrating-modbus-with-node-red/
    • /blog/2026/03/rethinking-edge-ais-core-orchestration/
  • Root cause: PR Prune stale redirects, move redirect handling to Nuxt #5540 moved legacy 11ty redirects for old, differently-cased URLs into nuxt/redirects.ts. Nitro's route matching is case-insensitive by default, so each of these rules also matched its own lowercase canonical URL, redirecting it to itself — an infinite loop that aborts navigation before the page ever renders.
  • Removed both stale entries from nuxt/redirects.ts and re-added them to netlify.toml instead. Netlify's edge redirects match exact case, so the old capitalized URLs still 301 to the canonical lowercase URLs, without colliding with them.
  • Audited the rest of nuxt/redirects.ts for the same pattern (a key case-insensitively equal to its own to, or colliding with another key) — no other instances found.

Test plan

  • Visit both post URLs locally (npm run dev), confirm they render normally now.
  • Visit both post URLs in the deploy preview, confirm they render normally.
  • Visit the old capitalized-casing URLs in the deploy preview (netlify.toml redirects only run through Netlify's own layer, not plain nuxt dev, can't be checked locally without netlify dev, confirm they 301 to the canonical URL instead of looping or 404ing.

Related Issue(s)

https://app.asana.com/1/1213818720452348/project/1215165115614867/task/1217418319610123?focus=true

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
  • For blog PRs, an Art Request has been created (instructions)

@netlify

netlify Bot commented Aug 13, 2026

Copy link
Copy Markdown

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit bd3cb31
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/6a7d9af85e4d250009b9266a
😎 Deploy Preview https://deploy-preview-5588--flowforge-website.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: 65 (🟢 up 1 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 85 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@Yndira-E
Yndira-E marked this pull request as ready for review August 13, 2026 10:49

@sumitshinde-84 sumitshinde-84 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank Yndira !

@sumitshinde-84
sumitshinde-84 merged commit 6272cca into main Aug 13, 2026
7 checks passed
@sumitshinde-84
sumitshinde-84 deleted the fix/blog/modbus-redirect branch August 13, 2026 10:54
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