Skip to content

Commit c01cc4e

Browse files
alexnguyennzflorian-lefebvre
andauthoredDec 15, 2023
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>
1 parent 35e4c17 commit c01cc4e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/gentle-chefs-glow.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Fixes warning for external URL redirects

‎packages/astro/src/core/routing/manifest/create.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ export function createRouteManifest(
461461
if (/^https?:\/\//.test(destination)) {
462462
logger.warn(
463463
'redirects',
464-
`Redirecting to an external URL is not officially supported: ${from} -> ${to}`
464+
`Redirecting to an external URL is not officially supported: ${from} -> ${destination}`
465465
);
466466
}
467467
}

0 commit comments

Comments
 (0)
Please sign in to comment.