Browse Source

fix cyrillic tags highlight

main
ghost 1 year ago
parent
commit
a285aa3158
  1. 2
      src/Controller/TorrentController.php
  2. 2
      templates/default/torrent/list.html.twig

2
src/Controller/TorrentController.php

@ -254,7 +254,7 @@ class TorrentController extends AbstractController @@ -254,7 +254,7 @@ class TorrentController extends AbstractController
{
if (in_array($keyword, $query))
{
$keywords[] = urlencode($keyword);
$keywords[] = $keyword;
}
}

2
templates/default/torrent/list.html.twig

@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
{% if torrent.keywords %}
<div class="margin-b-16-px">
{% for keyword in torrent.keywords %}
<a href="{{ path('torrent_search', { query : keyword }) }}">
<a href="{{ path('torrent_search', { query : keyword | url_encode(true) }) }}">
#{{ keyword }}
</a>
{% endfor %}

Loading…
Cancel
Save