Skip to content

Commit 1e2326c

Browse files
Fix broken blog post links in More Posts section (#1473)
- Update more_posts function to use correct /blog/{path} URL pattern - Matches the pattern used in main blog listing - Fixes malformed URLs like /blog/2025-06-30.../2025-06-20.../ Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Alek <[email protected]>
1 parent 0ad000f commit 1e2326c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcweb/pages/blog/page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def more_posts(current_post: dict) -> rx.Component:
3737

3838
for path, document in selected_posts:
3939
meta = document.metadata
40-
posts.append(card_content(meta=meta, path=path.replace("blog/", "")))
40+
posts.append(card_content(meta=meta, path=f"/blog/{path}"))
4141
return rx.el.section(
4242
rx.el.h2(
4343
"More Posts",

0 commit comments

Comments
 (0)