Skip to content

fix(redirects): recover legacy URLs Cloudflare leaves un-stripped#2431

Merged
bjohansebas merged 7 commits into
mainfrom
fix-redirect
Jul 5, 2026
Merged

fix(redirects): recover legacy URLs Cloudflare leaves un-stripped#2431
bjohansebas merged 7 commits into
mainfrom
fix-redirect

Conversation

@bjohansebas

@bjohansebas bjohansebas commented Jul 5, 2026

Copy link
Copy Markdown
Member

close #2407
This is Cloudflare's rule

if:
(ends_with(http.request.uri.path, ".html") and not starts_with(http.request.uri.path, "/2x/") and not http.request.uri.path matches "^/[0-9]{4}/" and not http.request.uri.path eq "/en/changelog/4x.html")
then:
concat("https://expressjs.com/", regex_replace(http.request.uri.path, "\\.html$", "/"))

@bjohansebas bjohansebas requested a review from a team as a code owner July 5, 2026 00:19
@netlify

netlify Bot commented Jul 5, 2026

Copy link
Copy Markdown

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit d052c95
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6a49b8157af676000822e259
😎 Deploy Preview https://deploy-preview-2431--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: 97 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 80 (no change from production)
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.

@bjohansebas bjohansebas merged commit fb1607b into main Jul 5, 2026
13 of 14 checks passed
@bjohansebas bjohansebas deleted the fix-redirect branch July 5, 2026 02:11
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.

Still more broken URLs after the redesign

1 participant