Skip to main content

find_page_by_requested_path

Function find_page_by_requested_path 

Source
async fn find_page_by_requested_path(
    conn: &mut PgConnection,
    course_id: Uuid,
    url_path: &str,
) -> ModelResult<Option<Page>>
Expand description

Looks up a non-deleted page in course_id whose stored url_path matches url_path in either the decoded-canonical or the legacy fully-encoded form (see url_path_lookup_candidates). Shared by the page lookup and its tests so both exercise the same candidate-matching logic.