Skip to main content

canonical_request_path

Function canonical_request_path 

Source
pub fn canonical_request_path(raw: &str) -> String
Expand description

Normalize a request path into the canonical form stored in cms_page.url_path. Leading slash kept; trailing slash stripped for non-root URLs. Empty / missing path collapses to /. Exposed for the router’s cache-key builder.