Identifies Admin users and tracks sign-in flows in PostHog
Redirect
Creates redirect rules automatically when published URLs change
Installation
pnpm add @klnap/payload-redirect About
Redirect keeps old URLs working when a published document changes its slug or path. When a published identifier changes, the plugin writes a redirect rule from the old address to the new one, so visitors and search engines land on the current page. Editors can also add manual rules, which take priority over generated ones on the same source path.
Rules are stored in a managed collection in the admin panel, where duplicate sources and loops are rejected. Draft saves and unchanged slugs do not create rules. The host application still serves the redirects, since the plugin stores rules without a resolver. PostgreSQL is needed for race-safe duplicate and loop checks.
Package info
- Package name
@klnap/payload-redirect- Latest version
0.4.12- Unpacked size
- 203 kB
- License
- MIT
- Weekly downloads
- 1.3k
- Last publish
- Nov 28, 2026
More from klnap
View profileSlug field that fills itself from another field, with optional Auto/Manual mode
Uses prefixed UUIDv7 TypeIDs as native Payload document IDs per collection
Event-driven Next.js cache invalidation triggered by Payload content changes
Stores Payload media in Sanity with on-demand image transforms and CDN delivery
Similar plugins
More in ContentLets admins define record types and fields at runtime without schema changes
Click text in a Next.js preview to open the matching field in the Payload admin
Markdown fields with a CodeMirror editor, styled directives and MCP access for AI agents
Shared CMS setup for Pebble sites: users and roles, R2 media, signed cache purge and previews
Lets users and organizations share records under host-defined access rules