Skip to content

Commit

Permalink
Fixes warning for external URL redirects (#9426)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
alexnguyennz and florian-lefebvre authored Dec 15, 2023
1 parent 35e4c17 commit c01cc4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gentle-chefs-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes warning for external URL redirects
2 changes: 1 addition & 1 deletion packages/astro/src/core/routing/manifest/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
);
}
}
Expand Down

0 comments on commit c01cc4e

Please sign in to comment.