about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/frontend/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs
index c698370..165d89d 100644
--- a/src/frontend/mod.rs
+++ b/src/frontend/mod.rs
@@ -871,8 +871,11 @@ pub async fn render_post<S: Storage>(mut req: Request<ApplicationState<S>>) -> R
         .join(req.url().path())
         .unwrap();
 
+    let mut entry_url = req.url().clone();
+    entry_url.set_query(None);
+
     let post =
-        get_post_from_database(&req.state().storage, url.as_str(), query.after, &user).await?;
+        get_post_from_database(&req.state().storage, entry_url.as_str(), query.after, &user).await?;
 
     let template: String = match post["type"][0]
         .as_str()