From 918c2726b409b6820f66d9138cda5cf1c2307dd4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 16:35:40 +0200 Subject: fix(templates/handlers): Fix post anchors - ensure users are correctly linked to a post actor after replying - ensure timestamps are clickable to get post IDs --- src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/handlers.rs') diff --git a/src/handlers.rs b/src/handlers.rs index 43bc69afe828..05b73a699196 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() -- cgit 1.4.1