Menu

Our /for pages have no index, and the breadcrumb working around it is a ternary with two identical branches
📰

Our /for pages have no index, and the breadcrumb working around it is a ternary with two identical branches

DEV Community: nextjs·Daniel Pertu·8 days ago
#qTPMwTNR
#devtonextjs#devto#dev#guides#pages
Reading 0:00
15s threshold

Notifio is a desktop app that watches rental listing search pages and alerts you when a new listing appears. Its site has eight long-form pages, split across two URL spaces for a reason I still think is right: /guides/<task> for somebody describing a job to be done, /for/<person> for somebody describing themselves.

The type that both routes render says so in its own doc comment:

/** * The shape of the long-form pages: /for/[audience] and /guides/[slug]. * * They are separate URL spaces because they serve different intent: /for/ pages * are for somebody describing themselves, /guides/ for somebody describing a * task.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.