samePage() — astro Function Reference
Architecture documentation for the samePage() function in router.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD acb125f8_cfa5_7e26_14a7_da6f5dc6f5f8["samePage()"] 2b5c33e2_176e_e839_f05f_7f10493f4f74["router.ts"] acb125f8_cfa5_7e26_14a7_da6f5dc6f5f8 -->|defined in| 2b5c33e2_176e_e839_f05f_7f10493f4f74 e109865a_50f0_f5e3_9564_1b171d3ba481["moveToLocation()"] e109865a_50f0_f5e3_9564_1b171d3ba481 -->|calls| acb125f8_cfa5_7e26_14a7_da6f5dc6f5f8 6b23b6bb_d4a4_83cb_3896_2e31c0316793["transition()"] 6b23b6bb_d4a4_83cb_3896_2e31c0316793 -->|calls| acb125f8_cfa5_7e26_14a7_da6f5dc6f5f8 style acb125f8_cfa5_7e26_14a7_da6f5dc6f5f8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/transitions/router.ts lines 36–37
const samePage = (thisLocation: URL, otherLocation: URL) =>
thisLocation.pathname === otherLocation.pathname && thisLocation.search === otherLocation.search;
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does samePage() do?
samePage() is a function in the astro codebase, defined in packages/astro/src/transitions/router.ts.
Where is samePage() defined?
samePage() is defined in packages/astro/src/transitions/router.ts at line 36.
What calls samePage()?
samePage() is called by 2 function(s): moveToLocation, transition.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free