diff --git a/src/routes/blog.rs b/src/routes/blog.rs index 5e8d3e9..6e27f65 100644 --- a/src/routes/blog.rs +++ b/src/routes/blog.rs @@ -67,7 +67,7 @@ struct BlogPostTemplate { toc: String, } -#[get("/blog/p/{id}")] +#[get("/blog/p/{id:.*}")] pub async fn page(path: web::Path<(String,)>, config: web::Data) -> impl Responder { Html(build_post( &path.into_inner().0,