Skip to content

Commit

Permalink
more precise protocol check
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy committed Dec 8, 2023
1 parent acb1410 commit 149121f
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -459,7 +459,7 @@ export function createRouteManifest(
else {
destination = to.destination
}
if (destination.startsWith("http")) {
if (/^https?:\/\//.test(destination)) {
logger.warn('redirects', `Redirecting to an external URL is not officially supported: ${from} -> ${to}`);
}
}
Expand Down

0 comments on commit 149121f

Please sign in to comment.