Repository navigation
WD-36855 - archive /blog group pages and redirect to /blog - #16452
Conversation
There was a problem hiding this comment.
Pull request overview
Archives legacy /blog/<group> landing pages by replacing their rendered templates with permanent redirects to /blog, reducing maintenance surface while keeping old URLs functional.
Changes:
- Replaced the previous blog group view with a redirect-only view returning
301to/blog. - Updated URL routing for the archived group slugs to use the new redirect view.
- Updated route tests accordingly and removed the now-unused group templates.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
webapp/views.py |
Introduces BlogArchivedGroup that permanently redirects archived group slugs to /blog. |
webapp/app.py |
Wires the archived group slug route to BlogArchivedGroup. |
tests/test_routes.py |
Adds coverage asserting archived group routes return 301 with Location: /blog. |
templates/blog/cloud-and-server.html |
Removes obsolete group template (route now redirects). |
templates/blog/desktop.html |
Removes obsolete group template (route now redirects). |
templates/blog/internet-of-things.html |
Removes obsolete group template (route now redirects). |
templates/blog/people-and-culture.html |
Removes obsolete group template (route now redirects). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature-blog #16452 +/- ##
================================================
- Coverage 48.31% 48.25% -0.07%
================================================
Files 37 37
Lines 5907 5900 -7
================================================
- Hits 2854 2847 -7
Misses 3053 3053
🚀 New features to boost your workflow:
|
|
Thanks Atakan! I'll +1 as the redirects work as expected. Is there a separate task to update the nav bar so we're not showing those groups in the bubble nav? It should be replaced by the global u.com nav bar instead |
|
@eliman11 Madhur's PR for the /blog rebrand removes the bubble nav, when merged only the global nav will show. |
| self.client.get("/blog/installing-ros-in-lxd").status_code, 200 | ||
| ) | ||
|
|
||
| def test_archived_blog_group_routes(self): |
There was a problem hiding this comment.
We should probably define a ruleset for what/when we test redirects as we don't traditionally do it. We can leave this for now though
Done
QA
Issue / Card
Fixes WD-36855