Replies: 3 comments 9 replies
-
This would be nice. I'm currently working around this by overwriting the generated package.json:
src/pages/index.astro (delay set to 0) <!doctype html>
<title>Redirecting to: /es/</title><meta
http-equiv="refresh"
content="0;url=/es/"
/><meta name="robots" content="noindex" /><link rel="canonical" href="/es/" />
<body></body> |
Beta Was this translation helpful? Give feedback.
5 replies
-
As a TSC member, I accept the feature as part of core |
Beta Was this translation helpful? Give feedback.
4 replies
-
Moved to Stage 2! See #1170 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Summary
Allow to have a known file called
3xx.astro
that allows to return a personalised version of a redirect pageBackground & 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:
Goals
404.astro
, to have a3xx.astro
file that will serve any 3 hundred status coderedirectDelay
to customise the delay of the timeout, even without having3xx.astro
fileExample
Beta Was this translation helpful? Give feedback.
All reactions