Skip to main content

resolve_link

Function resolve_link 

Source
pub fn resolve_link(
    root: &str,
    current_page: &str,
    link: &str,
) -> Option<String>
Expand description

Resolve a relative link inside the doc tree against root, going through a lexical safe_join check so ../../etc/passwd is rejected before hitting the asset layer.