@shinyaz

Tag and category detail pages had no link back to the index

1 min read

I noticed the tag detail pages (/tag/[slug]) and category detail pages (/category/[slug]) had no navigation back to their index pages. The only way back was the browser's back button — and anyone landing from a search engine wouldn't even know the index existed.

The fix is straightforward. Add a browseAll key to the i18n dictionary and place a Link before the <header>:

<Link
  href={`/${locale}/tag`}
  className="text-sm text-muted-foreground transition-colors hover:text-foreground"
>
  ← {t.tag.browseAll}
</Link>
<header className="mb-8 mt-4">

text-muted-foreground keeps it visually subdued, while hover:text-foreground signals clickability. Only two pages needed this, so I skipped creating a shared component — I'll abstract if a third instance appears.

Navigation gaps like this are hard to spot during development. You find them by actually walking through the site as a user would.

Share this post

Shinya Tahara

Shinya Tahara

Solutions Architect @ AWS

I'm a Solutions Architect at AWS, providing technical guidance primarily to financial industry customers. I share learnings about cloud architecture and AI/ML on this site.The views and opinions expressed on this site are my own and do not represent the official positions of my employer.