Skip to content

docs: update res.redirect examples to use default 302#2309

Open
debojeetmitra wants to merge 1 commit into
expressjs:mainfrom
debojeetmitra:debojeetmitra-patch-1
Open

docs: update res.redirect examples to use default 302#2309
debojeetmitra wants to merge 1 commit into
expressjs:mainfrom
debojeetmitra:debojeetmitra-patch-1

Conversation

@debojeetmitra
Copy link
Copy Markdown

Updates the res.redirect examples in the migration guide to reflect the default temporary redirect behavior (302) instead of explicitly using 301.

This helps reduce confusion during migration from Express 4 to 5 and avoids unintentionally encouraging permanent redirects.

Signed-off-by: Debojeet Mitra <142051979+debojeetmitra@users.noreply.github.com>
@debojeetmitra debojeetmitra requested a review from a team as a code owner May 16, 2026 05:37
@netlify
Copy link
Copy Markdown

netlify Bot commented May 16, 2026

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit ac65026
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6a0802b3a72e2900084d22d3
😎 Deploy Preview https://deploy-preview-2309--expressjscom-preview.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: 99 (🟢 up 3 from production)
Accessibility: 87 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 94 (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.

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