Skip to main content

resolve_path

Function resolve_path 

Source
pub async fn resolve_path(
    t: &Tenant,
    url_path: &str,
) -> Result<Option<Page>, TreeError>
Expand description

Resolve a request URL to a Page. Tries the materialized url_path first (one query); falls back to the slug walk when no row is found that way (legacy data, in-flight backfills, etc.).

url_path should be the request path (e.g. "/", "/about/", "/blog/post-1/"). Leading + trailing slashes are normalized.

ยงErrors

Driver / query failures.