Redirects
A redirect sends visitors who open an old address of the site to another address. SHADE keeps links working when pages are renamed or item pages (such as posts) move: it adds those redirects by itself when the change is published. Editors can add their own on the Redirects screen, and a module that is switched off can send its item pages elsewhere for the time being. Redirects are the website module's.
What users can do
Editors and admins:
- See every redirect of the site, newest first, 50 per page, and search them by either path.
- Know that the site's build takes up to 10,000 redirects; with more, the build stops with that message instead of leaving some out.
- Add a redirect by hand: an old path on this site, where it goes (a path on this site or a full
http(s)web address) and its type, 301 ("Moved for good") or 302 ("For now"). - Change a redirect: edit it, or add one again for the same old path, which replaces the existing one.
- Remove any redirect, including automatic ones.
Automatically, without anyone asking:
- Renamed pages: when a published page goes live under a new slug, its old path redirects to the new one (301).
- Moved addresses in any language: after every publish of a page, or of an item in a collection with item
pages, SHADE compares where each page and item page is now with where it was last public, per language. Each one
that moved gets a 301 from its old path. This covers translated slugs (
/en/about-us→/en/about), renamed posts, and an item template whose address changed (every post follows to the new address). - Back online under a new slug: pages and items that went offline keep their last known path, so publishing them again under another slug also redirects the old path.
- A path that is a page again loses its redirect.
Admins, when switching off a module that has item pages:
- Choose an address (default
/) that all of the module's public item pages, in every language, redirect to (302) while it is off. Switching the module on again removes exactly those redirects.
Visitors:
- Opening an old address takes them to the new one.
- An old path is always that one path: a
*in it is no wildcard, and the addresses the site's server answers itself (/api/…,/_server-islands/…,/_astro/…,/preview) never redirect, so a redirect can't take sign-in, personal blocks or the preview away.
Who may do it
| Action | Permission | Roles |
|---|---|---|
| See the Redirects screen and list redirects | website.redirects.read | admin, editor |
| Add, replace and remove redirects | website.redirects.manage | admin, editor |
| Automatic redirects for renamed pages and moved addresses | none of its own: whoever may publish the page or item | whoever may publish |
| Redirect a module's item pages when switching it off | packages.manage | admin |
| Read every redirect for the site's build | content.read (the site's token) | any role with content.read |
AI users have no redirect permissions, and AI assistants never touch redirects.
In the admin

Redirects in the sidebar's Website section (signpost icon; "Doorverwijzingen" in Dutch), shown to users who may see redirects.
- Header: New redirect (only for those who may manage redirects) and a search field, "Search paths…".
- Intro line: "Old addresses that send visitors on. Renamed pages add theirs when published."
- Table columns: From, To, Type ("Moved for good (301)" or "For now (302)"), Made by, Note and Created (time ago). "Made by" is one of: "An editor", "Renamed page", "Moved item page", "Module switched off".
- No page here (a warning badge next to To): the target is a path of this site where no page is published
(unpublished, deleted or mistyped), so visitors end on the not-found page. The redirect is kept; the editor
publishes the page again or changes the target. Web addresses and
/account(in any language) are never flagged. - A pencil button on each row (only for those who may manage redirects) opens Edit the redirect of {from}: the same form with From locked; saving replaces the redirect of that path.
- A trash button on each row (only for those who may manage redirects) asks "Remove the redirect of {from}?" before removing.
- Empty list: "No redirects."; a search that finds none: "Nothing matches “…”" with Clear the search. Pagination below the table.
New redirect dialog: From ("The old address, a path on this site."), To ("A path on this site or a full web address."), Type ("Moved for good (301)" or "For now (302)", default 301) and Note ("Optional: why it exists, for other editors."), then Save. A From path where a published page lives is refused ("A published page lives at this path: change or unpublish the page first"). Mistakes are shown in the form before it is sent. After saving, a toast says "Redirect saved" and "The site will rebuild."
The module turn-off dialog (Modules screen) has the field "Send visitors of its {count} pages there instead", shown
when the module has public item pages, prefilled with / (a redirect home is better for visitors and search engines
than a not-found page), with the help text "Prefilled with the home page. A page of the site, e.g. / or /shop, or a
full web address. Temporary: switching the module on again removes these redirects. Empty: its pages show the
not-found page."
On the website
- Every redirect works with and without a trailing slash, as a permanent (301) or temporary (302) redirect, which search engines follow.
- A page always wins over a redirect: while a published page lives at an old path, visitors get the page.
- Where the hosting cannot redirect by itself, the old path holds a small page that sends visitors on at once, with a
link to the new address, hidden from search engines. An old path or target with a space, a quote or
{gets only that page. - Changes to redirects reach the site with the next build: adding or removing one rebuilds the site, and so does an automatic redirect made after a publish.
Rules and limits
Paths:
- Start with
/; no spaces,?,#or%; no..segment; at most 500 characters; spaces around it are trimmed. - Written as visitors see them:
/café, not/caf%C3%A9. Paths with letters such aséwork on the site. - Stored without a trailing slash (
/oud/becomes/oud);/stays/. - To may also be a full
http://orhttps://URL of at most 2000 characters. - Note: at most 200 characters.
One redirect per old path. Adding a redirect for a path that already has one replaces it (target, type, who made it and note).
No chains, no loops:
- A path cannot redirect to itself.
- If the target itself redirects somewhere, the new redirect goes straight to that final target (with
/a → /cin place, adding/z → /astores/z → /c). - All redirects that pointed at the newly redirected path are pointed further: after
/a → /band/b → /c, the list holds/a → /cand/b → /c. - When that happens because a module is switched off (its item pages redirected), each redirect pointed further remembers where it pointed; switching the module on again points it back at the item page.
- A redirect whose target already redirects back to its old path is refused ("… already redirects to …"). This holds when two redirects are added at the same moment too: the second waits for the first, then sees it.
- Renaming a page back to its old slug turns the redirect around:
/wie-we-zijn → /over-onsreplaces/over-ons → /wie-we-zijn.
Conflicts with pages:
- When a page or item page goes live at a path, any redirect from that path is deleted.
- An automatic redirect is not made if another page now lives at the old path.
- A hand-made redirect from a path where a published page lives is refused. One made while no page lived there stays; the site ignores it while a page lives there (the page wins).
- Unpublishing makes no redirect: the page keeps its last path, so publishing it later under another slug redirects (see above). Redirects that pointed at it are kept and flagged No page here.
- Deleting a page or item forgets its last paths, since it can no longer move.
Languages: automatic redirects are tracked per page or item and per language, so a changed English slug
redirects the English path only, and a post with a Dutch and an English page gets one redirect per language.
Hand-made redirects have no language: the editor types the full path, with its language prefix (/en/…) where
needed.
Module redirects: type 302, made by "Module switched off", note "Module {name} is off". An item page whose path
equals the chosen target is skipped. The address is checked like any redirect's To. The redirects are made
together with switching the module off (both happen, or neither). Switching the module on removes them, recorded in
the audit log as one website.redirects.manage entry.
Audit: hand-made additions and removals, automatic redirects and module redirects are recorded as
website.redirects.manage.
For developers
The code and its tests: the README of shade-plugin-website.