Skip to content

Conversation

avevotsira
Copy link

Changes:

Part of : withastro/roadmap#1170

  • similar to 404.astro, to have a 3xx.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

Testing

  • Added a test case of custom 3xx.astro with some custom HTML, and then assert that the redirect returns that custom HTML

Docs

This change requires updates to the docs.
/cc @withastro/maintainers-docs for feedback!

Copy link

changeset-bot bot commented May 20, 2025

⚠️ No Changeset found

Latest commit: 4032e38

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label May 20, 2025
Copy link

codspeed-hq bot commented May 20, 2025

CodSpeed Performance Report

Merging #13827 will not alter performance

Comparing avevotsira:feat/personalised-3xx-page (4032e38) with main (304df34)

Summary

✅ 6 untouched benchmarks

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

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant