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:
parent
35e4c17fe2
commit
c01cc4e340
2 changed files with 6 additions and 1 deletions
5
.changeset/gentle-chefs-glow.md
Normal file
5
.changeset/gentle-chefs-glow.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes warning for external URL redirects
|
|
@ -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}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue