Fix Rediret to current post

This commit is contained in:
Jesús
2019-11-19 10:56:04 -05:00
parent a6be1e73b8
commit 299e3e6c7c
2 changed files with 8 additions and 5 deletions

View File

@@ -227,7 +227,11 @@
<!-- form begin -->
<form class="media" id="commentform" method="POST" action="{{ SITEURL }}/vendor/form-comments/commentsubmit.php">
<input type="hidden" name="post_id" value="{{ article.url }}">
<input type="hidden" name="return_url" value="{{ SITEURL }}/{{ article.url }}" />
{% if RELATIVE_URLS == False %}
<input type="hidden" name="return_url" value="{{ SITEURL }}/{{ article.url }}" />
{% else %}
<input type="hidden" name="return_url" value="../../{{ article.url }}" />
{% endif %}
<figure class="media-left">
<p class="image is-64x64">
<img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/avatar/avatar.png" alt="placeholder">