Skip to content

Commit cfcfa01

Browse files
authored
Merge pull request #12 from Xareth/user-link
links for user repaired
2 parents 3e1276b + f734a28 commit cfcfa01

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

templates/qd.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1 class="card-header display-5">{{ question['title'] }}</h1>
3838
<small class="text-muted d-block">
3939
Posted by:
4040
{%- if question['users_id'] -%}
41-
<td><a href="/user/{{ question['users_id'] }}"> {{ question['username'] }} </a></td>
41+
<td><a href="{{ url_for('user_page', user_id=question['users_id']) }}"> {{ question['username'] }} </a></td>
4242
{% else %}
4343
<td> {{ question['username'] }} </td>
4444
{% endif %}
@@ -81,7 +81,7 @@ <h1 class="card-header display-5">{{ question['title'] }}</h1>
8181
<small class="text-muted d-block">
8282
Posted by:
8383
{%- if comment['users_id'] -%}
84-
<td><a href="/user/{{ comment['users_id'] }}"> {{ comment['username'] }} </a></td>
84+
<td><a href="{{ url_for('user_page', user_id=comment['users_id']) }}"> {{ comment['username'] }} </a></td>
8585
{% else %}
8686
<td> {{ comment['username'] }} </td>
8787
{% endif %}
@@ -160,7 +160,7 @@ <h5 class="card-title">
160160
Posted on: {{ answer['submission_time'] }}
161161
Posted by:
162162
{%- if answer['users_id'] -%}
163-
<td><a href="/user/{{ answer['users_id'] }}"> {{ answer['username'] }} </a></td>
163+
<td><a href="{{ url_for('user_page', user_id=answer['users_id']) }}"> {{ answer['username'] }} </a></td>
164164
{% else %}
165165
<td> {{ answer['username'] }} </td>
166166
{% endif %}

0 commit comments

Comments
 (0)