diff --git a/app/templates/post/_post_full.html b/app/templates/post/_post_full.html index bb343f60..bd6a9986 100644 --- a/app/templates/post/_post_full.html +++ b/app/templates/post/_post_full.html @@ -17,7 +17,7 @@

{% if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator(current_user) -%} {% endif -%}submitted by - {{ render_username(post.author) }} + {{ render_username(post.author, htmx_redirect_back_to=request.url) }} {% if post.edited_at -%} edited

{% if post.type == POST_TYPE_IMAGE -%} diff --git a/app/templates/post/_post_reply_teaser.html b/app/templates/post/_post_reply_teaser.html index 43a6544d..a58bb184 100644 --- a/app/templates/post/_post_reply_teaser.html +++ b/app/templates/post/_post_reply_teaser.html @@ -28,7 +28,7 @@
by - {{ render_username(post_reply.author) }} + {{ render_username(post_reply.author, htmx_redirect_back_to=request.url + '#comment_' + str(post_reply.id)) }} {% if post_reply.author.id == post_reply.post.author.id -%} [OP] {% endif -%} diff --git a/app/templates/post/_post_teaser.html b/app/templates/post/_post_teaser.html index 52f6b042..da4aba42 100644 --- a/app/templates/post/_post_teaser.html +++ b/app/templates/post/_post_teaser.html @@ -9,7 +9,7 @@ {# do nothing - blocked by keyword filter #} {% else -%}