Skip to main content

parse_surface_from_query

Function parse_surface_from_query 

Source
pub fn parse_surface_from_query() -> Option<AppSection>
Expand description

Parse the live page URL’s ?surface= query — thin wrapper around routing::parse_surface that pulls the string from window.location.search(). Returns None outside a browser (so the calling site falls through to the default mount path).