fix(redirects): add /community-news redirect to /news/community-news #515
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds redirect for legacy newsletter links pointing to /community-news to properly route to /news/community-news page.
Fixes #514
name: Pull Request
about: Submit changes to the Sugar Labs website for review
📝 Description
Adds a redirect from
/community-newsto/news/community-newsto fix broken links from legacy sources (e.g., The Sweet Spot newsletter). Users visiting the old URL will now be automatically redirected to the correct Community News page instead of encountering a 404 error.🔗 Related Issue
Fixes #[514]
🔄 Type of Change
📷 Visual Changes
Screenshots / GIFs
Before:
/community-newsresulted in 404 error pageAfter:
/community-newsautomatically redirects to/news/community-news🧪TESTED LOCALLY

🧪 Testing Performed
📱 Browser Compatibility
🖥️ Responsive Design
✅ Test Cases
/community-news- redirects to/news/community-newsreplacenavigation (no history entry)/booting-soas,/go/Sugar_Labs/Donate)♿ Accessibility
📋 PR Checklist
💭 Additional Notes
Technical Implementation:
src/redirects.tsxto add new entry inredirectMap<Navigate>withreplacepropTesting Notes:
npm run dev) and production (npm run build && npm run preview) modesImpact: