0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

Fixes warning for external URL redirects (#9426)

* Update warning for external URL redirects to use destination address

* Update .changeset/gentle-chefs-glow.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
This commit is contained in:
Alex Nguyen 2023-12-16 06:23:50 +13:00 committed by GitHub
parent 35e4c17fe2
commit c01cc4e340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes warning for external URL redirects

View file

@ -461,7 +461,7 @@ export function createRouteManifest(
if (/^https?:\/\//.test(destination)) {
logger.warn(
'redirects',
`Redirecting to an external URL is not officially supported: ${from} -> ${to}`
`Redirecting to an external URL is not officially supported: ${from} -> ${destination}`
);
}
}