diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-11T14·35+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-11T14·35+0200 |
commit | 918c2726b409b6820f66d9138cda5cf1c2307dd4 (patch) | |
tree | d5a1f86c86ec9d4c701d7b46b1e33c164a968bfb /src/handlers.rs | |
parent | b781a1fe57f7b589b97703ce08758991b39cb067 (diff) |
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
Diffstat (limited to 'src/handlers.rs')
-rw-r--r-- | src/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<AppState>, 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() |