summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alex Nguyen <dev@alexnguyen.co.nz> 2023-12-16 06:23:50 +1300
committerGravatar GitHub <noreply@github.com> 2023-12-15 17:23:50 +0000
commitc01cc4e3409ae3cf81db7384bf8e53424f21bb5c (patch)
treec616f1a041afd80d5c49a083fac6b051bab399d2
parent35e4c17fe245179dd88af679a5f0a08785b7bfef (diff)
downloadastro-c01cc4e3409ae3cf81db7384bf8e53424f21bb5c.tar.gz
astro-c01cc4e3409ae3cf81db7384bf8e53424f21bb5c.tar.zst
astro-c01cc4e3409ae3cf81db7384bf8e53424f21bb5c.zip
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>
-rw-r--r--.changeset/gentle-chefs-glow.md5
-rw-r--r--packages/astro/src/core/routing/manifest/create.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/gentle-chefs-glow.md b/.changeset/gentle-chefs-glow.md
new file mode 100644
index 000000000..b6852a795
--- /dev/null
+++ b/.changeset/gentle-chefs-glow.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Fixes warning for external URL redirects
diff --git a/packages/astro/src/core/routing/manifest/create.ts b/packages/astro/src/core/routing/manifest/create.ts
index 19e6e3006..f87d5fcd2 100644
--- a/packages/astro/src/core/routing/manifest/create.ts
+++ b/packages/astro/src/core/routing/manifest/create.ts
@@ -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}`
);
}
}