-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
- Accepted Date: 2025-05-19
- Reference Issues/Discussions: Personalise redirects with a `3xx.astro` file #844
- Author: @ematipico
- Champion(s): @ematipico and @avevotsira
- Implementation PR:
Summary
Allow to have a known file called 3xx.astro
that allows to return a personalised version of a redirect page
Background & Motivation
Since we introduced i18n routing, there have been cases where this new features uses the redirect engine used by Astro.
This showed some shortcomings in features:
- it's not possible to personalise the markup of the page
- it's not possible to change the delay of the redirect, which makes a difference in SSG, where a short delay is marked as a temporary redirect, while a long delay is a permanent redirect
- i18n routing users can't translate the page
Goals
- similar to
404.astro
, to have a3xx.astro
file that will serve any 3 hundred status code - users can use any markup inside the page
- fallback to the built-in redirect layout if nothing is provided
OliverSpeiravevotsira, staticWagomU, sloria and iki
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Stage 2: Accepted Proposals, No RFC