Skip to content

Remove trailingSlash config#17581

Draft
pettinarip wants to merge 2 commits intoab-testingfrom
remove-trailing-slash
Draft

Remove trailingSlash config#17581
pettinarip wants to merge 2 commits intoab-testingfrom
remove-trailing-slash

Conversation

@pettinarip
Copy link
Copy Markdown
Member

Summary

  • Remove trailingSlash: true from next.config.js
  • Add redirect rule to 301 trailing slash URLs to non-trailing slash for SEO preservation
  • Update middleware A/B testing URL rewriting to not append trailing slashes
  • Update URL utility functions (addSlashes, getFullUrl) to normalize without trailing slashes
  • Update all redirect destinations in redirects.config.js to remove trailing slashes

Test plan

  • Verify pages load without trailing slashes
  • Verify trailing slash URLs redirect properly (301)
  • Verify A/B testing still works on homepage
  • Verify sitemap URLs don't have trailing slashes

@github-actions github-actions Bot added config ⚙️ Changes to configuration files tooling 🔧 Changes related to tooling of the project labels Feb 16, 2026
- Remove trailingSlash: true from next.config.js
- Add redirect rule to strip trailing slashes for SEO preservation
- Update middleware A/B testing to not append trailing slashes
- Update URL utility functions to normalize paths without trailing slashes
- Update all redirect destinations in redirects.config.js
@pettinarip pettinarip force-pushed the remove-trailing-slash branch from e9616d0 to 36572c0 Compare February 18, 2026 11:42
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 18, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 36572c0
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6995a5b72dc9a60008edeb72
😎 Deploy Preview https://deploy-preview-17581.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 70 (🟢 up 15 from production)
Accessibility: 87 (🔴 down 7 from production)
Best Practices: 97 (🔴 down 3 from production)
SEO: 94 (🔴 down 6 from production)
PWA: -
View the detailed breakdown and full score reports

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

@github-actions
Copy link
Copy Markdown
Contributor

This issue is stale because it has been open 30 days with no activity.

@github-actions github-actions Bot added the Status: Stale This issue is stale because it has been open 30 days with no activity. label Mar 21, 2026
@wackerow
Copy link
Copy Markdown
Member

@pettinarip Is this still needed given the latest SEO changes that have been implemented?

@github-actions github-actions Bot removed the Status: Stale This issue is stale because it has been open 30 days with no activity. label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config ⚙️ Changes to configuration files tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants