prependForwardSlash() — astro Function Reference
Architecture documentation for the prependForwardSlash() function in astro.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 39158eea_4bd6_d5fc_552c_319f997fe079["prependForwardSlash()"] 3303a596_77e9_a4f6_1515_7ec93bef6e53["astro.ts"] 39158eea_4bd6_d5fc_552c_319f997fe079 -->|defined in| 3303a596_77e9_a4f6_1515_7ec93bef6e53 588be6b3_7df5_51d9_4f94_ee8db1fac57e["createRedirectsFromAstroRoutes()"] 588be6b3_7df5_51d9_4f94_ee8db1fac57e -->|calls| 39158eea_4bd6_d5fc_552c_319f997fe079 style 39158eea_4bd6_d5fc_552c_319f997fe079 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/underscore-redirects/src/astro.ts lines 158–160
function prependForwardSlash(str: string) {
return str.startsWith('/') ? str : '/' + str;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does prependForwardSlash() do?
prependForwardSlash() is a function in the astro codebase, defined in packages/underscore-redirects/src/astro.ts.
Where is prependForwardSlash() defined?
prependForwardSlash() is defined in packages/underscore-redirects/src/astro.ts at line 158.
What calls prependForwardSlash()?
prependForwardSlash() is called by 1 function(s): createRedirectsFromAstroRoutes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free