Home / Function/ isRouteExternalRedirect() — astro Function Reference

isRouteExternalRedirect() — astro Function Reference

Architecture documentation for the isRouteExternalRedirect() function in match.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  f5fb510b_2ce6_e7ad_32bf_152300befea0["isRouteExternalRedirect()"]
  0b4969b2_7e25_9c4a_3b7f_911a988f8209["match.ts"]
  f5fb510b_2ce6_e7ad_32bf_152300befea0 -->|defined in| 0b4969b2_7e25_9c4a_3b7f_911a988f8209
  style f5fb510b_2ce6_e7ad_32bf_152300befea0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/routing/match.ts lines 87–89

export function isRouteExternalRedirect(route: RouteData): boolean {
	return !!(route.type === 'redirect' && route.redirect && redirectIsExternal(route.redirect));
}

Domain

Subdomains

Frequently Asked Questions

What does isRouteExternalRedirect() do?
isRouteExternalRedirect() is a function in the astro codebase, defined in packages/astro/src/core/routing/match.ts.
Where is isRouteExternalRedirect() defined?
isRouteExternalRedirect() is defined in packages/astro/src/core/routing/match.ts at line 87.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free