Updated post links to only use direct ones, indirect would break on different pages.
This commit is contained in:
parent
8d060045f9
commit
bf70461e5c
1 changed files with 4 additions and 2 deletions
|
@ -396,15 +396,17 @@
|
|||
</div>
|
||||
|
||||
<div class="forum__post__content">
|
||||
{% set post_link = url_construct('/forum/topic.php', post.is_opening_post ? {'t':post.topic_id} : {'p':post.post_id}, post.is_opening_post ? '' : post.post_id) %}
|
||||
|
||||
<div class="forum__post__details">
|
||||
<a class="forum__post__datetime" href="/forum/topic.php?t={{ post.topic_id }}#p{{ post.post_id }}">
|
||||
<a class="forum__post__datetime" href="{{ post_link }}">
|
||||
<time datetime="{{ post.post_created|date('c') }}" title="{{ post.post_created|date('r') }}">{{ post.post_created|time_diff }}</time>
|
||||
{% if post.post_edited is not null %}
|
||||
(edited <time datetime="{{ post.post_edited|date('c') }}" title="{{ post.post_edited|date('r') }}">{{ post.post_edited|time_diff }}</time>)
|
||||
{% endif %}
|
||||
</a>
|
||||
|
||||
<a class="forum__post__id" href="/forum/topic.php?p={{ post.post_id }}#p{{ post.post_id }}">
|
||||
<a class="forum__post__id" href="{{ post_link }}">
|
||||
#{{ post.post_id }}
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue