Fix the link of the follow/unfollow button so that it is always working, even without a trailing slash

This commit is contained in:
Bat
2018-07-20 17:59:16 +02:00
parent b0e75f4d63
commit 3764e295b8
3 changed files with 4 additions and 12 deletions
+2 -2
View File
@@ -21,9 +21,9 @@
{% set not_self = not is_self %}
{% if not_self and (account is defined) %}
{% if follows %}
<a href="follow/" class="inline-block button">{{ "Unfollow" | _ }}</a>
<a href="/@/{{ user.fqn }}/follow/" class="inline-block button">{{ "Unfollow" | _ }}</a>
{% else %}
<a href="follow/" class="inline-block button">{{ "Follow" | _ }}</a>
<a href="/@/{{ user.fqn }}/follow/" class="inline-block button">{{ "Follow" | _ }}</a>
{% endif %}
{% endif %}
</div>