Slug Redirects

Redirects old document URLs to the current slug when a Payload slug changes

Community 3 364/wk MIT v2.0.3

Installation

pnpm add payload-slug-redirects

About

Slug Redirects keeps old URLs working after an editor renames a page or post. When a slug changes on a watched collection, the plugin records the old slug against the document's ID, so renames chained together (A to B to C) still send visitors from both old addresses to the current one. Your Next.js frontend uses the included helpers to look up a missing slug and issue a permanent or temporary redirect, or return a not-found page when no match exists. Multi-locale sites are supported, with redirect records tracked per locale and an optional hook for reacting to each change.

Package info

Package name
payload-slug-redirects
Latest version
2.0.3
Unpacked size
51 kB
License
MIT
Weekly downloads
364
Last publish
Nov 6, 2026

Similar plugins

More in Content

Adds 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