From 9e48c2bd8b4a3fdd73b2fc51afec14180b4b0dcf Mon Sep 17 00:00:00 2001 From: Joris Date: Mon, 10 Jun 2024 08:55:25 +0200 Subject: Use easier path to facilitate matching on routes --- src/templates.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/templates.rs') diff --git a/src/templates.rs b/src/templates.rs index b551bf6..9fd2162 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -109,7 +109,7 @@ pub const INTERNAL_SERVER_ERROR: &str = const_format::concatcp!( ); pub fn file_page(file: File) -> String { - let href = format!("{}/download", file.id); + let href = format!("/share/{}/download", file.id); let expiration = file.expires_at.signed_duration_since(Local::now()); format!( -- cgit v1.2.3