@astrojs/underscore-redirects@1.0.4
withastro/astro@astrojs/underscore-redirects@1.0.4Aug 11, 2026by astrobot-houston
AI Summary
A patch release correcting the behavior of dynamic redirect routes to ensure they respect the user-configured HTTP status codes rather than defaulting to 301.
Key Highlights
- Dynamic redirects now honor user-defined status codes like 302.
Full Release Notes
### Patch Changes
- [#17620](https://github.com/withastro/astro/pull/17620) [`0891ac9`](https://github.com/withastro/astro/commit/0891ac9de5a6996e5ebd227e3443f7f4a4ea935a) Thanks [@astrobot-houston](https://github.com/astrobot-houston)! - Fixes dynamic redirect routes to honour user-configured status codes instead of hardcoding 301. Previously, a redirect configured with `{ destination: '/new', status: 302 }` would be emitted as 301 in the `_redirects` file when the route was dynamic.