async fn set_url_paths(
conn: &mut PgConnection,
ids: &[Uuid],
url_paths: &[String],
) -> ModelResult<()>Expand description
Writes pages’ url paths as given, without normalizing them or adding redirections.
reorder_chapters rewrites paths in two passes and creates the redirections itself, so neither belongs here. Use insert_page or update_page for a path that comes from a user, since those canonicalize it.
Does not filter on deleted_at: a deleted page’s path is written too.