Skip to content

Fix broken share links, custom 404, page titles, and tag capitalization#20

Merged
BayPhillips merged 3 commits intomainfrom
fix/dogfood-issues
Feb 25, 2026
Merged

Fix broken share links, custom 404, page titles, and tag capitalization#20
BayPhillips merged 3 commits intomainfrom
fix/dogfood-issues

Conversation

@BayPhillips
Copy link
Owner

Summary

  • Fix broken share links (ISSUE-001): Post share buttons for Twitter/LinkedIn linked to /posts/ instead of the full post URL because post.slug is already a string, not {current: string}
  • Add custom 404 page (ISSUE-003): Replace default unstyled Next.js 404 with a branded page that includes navigation and a link home
  • Add page-specific titles (ISSUE-006): About, Contact, and Posts pages now set metadata titles so browser tabs show "About | Bay Phillips" etc. instead of just "Bay Phillips"
  • Fix tag capitalization (ISSUE-002): toTitleCase now handles acronyms/brand names (AI, Next.js, ReflexAI) instead of naively capitalizing the first letter

Test plan

  • Visit a blog post and verify share links contain the full post slug in the URL
  • Visit a non-existent URL (e.g., /nonexistent) and verify a styled 404 page with navigation appears
  • Check browser tab titles on /about, /contact, and /posts pages
  • Visit /tags/ai and verify heading reads "AI posts" not "Ai posts"

🤖 Generated with Claude Code

…zation

- Fix share URLs missing post slug (post.slug is a string, not {current})
- Add custom 404 page with site branding and navigation
- Add page-specific metadata titles for About, Contact, and Posts pages
- Fix toTitleCase to handle acronyms like AI and Next.js

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Contributor

vercel bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
next-blog Ready Ready Preview, Comment Feb 25, 2026 3:05am

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The (blog) route group's not-found.tsx only handles notFound() calls
within blog pages. Unmatched URLs need a root app/not-found.tsx which
renders outside the (blog) layout, so it uses inline styles for a
clean standalone appearance with a "Go back home" link.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@BayPhillips BayPhillips merged commit 3512fd0 into main Feb 25, 2026
3 checks passed
@BayPhillips BayPhillips deleted the fix/dogfood-issues branch February 25, 2026 03:08
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.

1 participant