diff --git a/src/handlers.rs b/src/handlers.rs index 43bc69afe..05b73a699 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -131,7 +131,7 @@ pub fn reply_thread(state: State, let post = res?; info!("Posted reply {} to thread {}", post.id, post.thread_id); Ok(HttpResponse::SeeOther() - .header("Location", format!("/thread/{}#post{}", post.thread_id, post.id)) + .header("Location", format!("/thread/{}#post-{}", post.thread_id, post.id)) .finish()) }) .responder() diff --git a/templates/thread.html b/templates/thread.html index bbe288e92..1b4846373 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -32,7 +32,10 @@ {% for post in posts -%} -
+
+ + {{ post.posted }} +
@@ -49,7 +52,6 @@
{{ post.body }}
- {{ post.posted }}
{%- endfor %}