templates/view.html: use url_for for the 'edit_torrent' endpoint

This commit is contained in:
shm0o 2017-05-25 19:03:56 -04:00
parent 18dd7cd66f
commit 8b7712b1d0
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
<div class="panel-heading"{% if torrent.hidden %} style="background-color: darkgray;"{% endif %}>
<h3 class="panel-title">
{% if can_edit %}
<a href="{{ request.url }}/edit" title="Edit torrent"><i class="fa fa-fw fa-pencil"></i></a>
<a href="{{ url_for('edit_torrent', torrent_id=torrent.id) }}" title="Edit torrent"><i class="fa fa-fw fa-pencil"></i></a>
{% endif %}
{{ torrent.display_name }}
</h3>