diff --git a/packages/astro/src/core/routing/manifest/create.ts b/packages/astro/src/core/routing/manifest/create.ts index 720a2deaac42b..379f458eb50f6 100644 --- a/packages/astro/src/core/routing/manifest/create.ts +++ b/packages/astro/src/core/routing/manifest/create.ts @@ -460,7 +460,7 @@ export function createRouteManifest( destination = to.destination } if (destination.startsWith("http")) { - return logger.error('redirects', `Redirecting to an external URL is not supported: ${from} -> ${to}`); + logger.warn('redirects', `Redirecting to an external URL is not officially supported: ${from} -> ${to}`); } } diff --git a/packages/astro/test/redirects.test.js b/packages/astro/test/redirects.test.js index b9417643d059d..63a09312478fb 100644 --- a/packages/astro/test/redirects.test.js +++ b/packages/astro/test/redirects.test.js @@ -28,7 +28,8 @@ describe('Astro.redirect', () => { expect(response.headers.get('location')).to.equal('/login'); }); - it('Ignores external redirect', async () => { + // ref: https://github.com/withastro/astro/pull/9287 + it.skip('Ignores external redirect', async () => { const app = await fixture.loadTestAdapterApp(); const request = new Request('http://example.com/external/redirect'); const response = await app.render(request);