From ea83a31b164e3e74f0a2b74a75ff67303ccee200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Mon, 26 May 2025 04:07:50 +0300 Subject: [PATCH] make cancel post edit button link to the post in question --- views/threads/post.etlua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/threads/post.etlua b/views/threads/post.etlua index 9ea6eb6..86ae4dc 100644 --- a/views/threads/post.etlua +++ b/views/threads/post.etlua @@ -72,7 +72,7 @@ <% end %> <% else %> <% render("views.common.babycode-editor", { - cancel_url = post_url, + cancel_url = url_for("thread", {slug = thread.slug}, {after = post.id}) .. "#post-" .. post.id, prefill = post.original_markup, ta_name = "new_content" }) %>