A directory of article links should point to canonical page paths. Stable slugs keep bookmarks working when the visual title changes.
Worked example
// components/ArticleDirectoryLinks.tsx
import Link from "next/link";
export default function ArticleDirectoryLinks({
items = [
{ slug: "getting-started", title: "Getting started" },
{ slug: "building", title: "Building" },
],
}: { items?: { slug: string; title: string }[] } = {}) {
return (
<ul>
{items.map((i) => (
<li key={i.slug}>
<Link href={"/articles/" + encodeURIComponent(i.slug)}>{i.title}</Link>
</li>
))}
</ul>
);
}Implementation notes
Internal linking helps both readers and crawlers discover detail pages. Descriptive anchor text gives each destination more context than a row of identical links.
Try it yourself
Open a detail page directly and navigate back through the generated index.
Open the Next.js example →Editorial date June 6, 2025 · Published December 6, 2026