Switch the admin panel between production and development databases, and copy production down
Paths
Stores a computed path on each page so URLs resolve with one indexed lookup
Installation
pnpm add @whatworks/payload-paths About
Paths stores the full URL of every document in the database, so a page at /about/contact and a page at /contact can both exist with the same slug. Each document gets an indexed path built from its parent chain, and the plugin checks for collisions when a document is published, including re-parenting that would create a cycle or a clash across a subtree. Drafts never block on these checks.
For a site that serves pages through a catch-all route, the resolver turns a request URL into a single database query and returns found, not-found, or redirect. A Next.js layer adds draft mode, static params and cache revalidation. Paths also repairs documents that have no stored path and can scope uniqueness by tenant.
Package info
- Package name
@whatworks/payload-paths- Latest version
0.3.1- Unpacked size
- 443 kB
- License
- MIT
- Weekly downloads
- 302
- Last publish
- Jul 24, 2026
More from what-works-global
View profileManaged redirects with cache-backed Next.js middleware and an orderable admin list
Role-based access control with a per-collection permissions matrix in the admin panel
Audit feed of document changes and user logins across every collection and global
Records who created and last edited each document, with names shown in the admin
Syncs Payload collections to Algolia with draft-aware indexing and admin reindexing
Similar plugins
More in ContentAdds question-based conditions that decide which pages a visitor sees
Opens nested blocks and array rows in stacked panels with breadcrumb navigation
Click-to-edit overlays on the frontend that open the matching field in the admin
Inline editing on your live website for Payload content, with reviewed drafts
Visual drag-and-drop page builder for Payload collections with live canvas editing
Adds a parent field and breadcrumbs to collections so documents can nest inside each other