Skip to content

Custom 3xx redirect page - #1444

Open
florian-lefebvre wants to merge 3 commits into
mainfrom
florian-lefebvre/Custom-3xx-error-page
Open

florian-lefebvre wants to merge 3 commits into
mainfrom
florian-lefebvre/Custom-3xx-error-page

Conversation

@florian-lefebvre

@florian-lefebvre florian-lefebvre commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Add a Stage 3 RFC for customizing prerendered redirect pages with src/pages/3xx.astro. The RFC describes the experimental opt-in flag, the redirect props, the built-in fallback, and the exported RedirectPageProps type for TypeScript users.

Example page usage:

---
import type { RedirectPageProps as Props } from 'astro';

const { from, to, status, delay } = Astro.props;
---
<meta http-equiv="refresh" content={`${delay};url=${to}`} />

Links

Comment thread proposals/0062-3xx-redirect-page.md Resolved
@matthewp

Copy link
Copy Markdown
Contributor

I assume this feature is static-only? Applying 404 to SSR was a very buggy experience, I'm not sure we ever got it totally resolved, and would prefer not to repeat that.

@florian-lefebvre

Copy link
Copy Markdown
Member Author

Yes it is static only. SSR just uses the Location header

@matthewp

Copy link
Copy Markdown
Contributor

@florian-lefebvre can you add SSR as a non-goal in that case?

@matthewp

Copy link
Copy Markdown
Contributor

Oh wait I guess you kind of already do, never mind.

@altsalt

This comment was marked as resolved.

@florian-lefebvre

This comment was marked as resolved.

@altsalt

This comment was marked as resolved.

@florian-lefebvre

This comment was marked as resolved.

@altsalt

This comment was marked as resolved.

@florian-lefebvre

This comment was marked as resolved.

@altsalt

This comment was marked as resolved.

@matthewp

Copy link
Copy Markdown
Contributor

What has the feedback been on the experimental release?

@florian-lefebvre

Copy link
Copy Markdown
Member Author

I have not received any apart from the conversation here, which was not about the feature per say

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants