URL-encode book series name when linking to it

Closes: #3021.
This commit is contained in:
Adeodato Simó 2023-10-09 04:24:05 -03:00
parent bcfd4d2efa
commit 1778c56be0
No known key found for this signature in database
GPG key ID: CDF447845F1A986F

View file

@ -48,7 +48,7 @@
<meta itemprop="volumeNumber" content="{{ book.series_number }}">
{% if book.authors.exists %}
<a href="{% url 'book-series-by' book.authors.first.id %}?series_name={{ book.series }}">
<a href="{% url 'book-series-by' book.authors.first.id %}?series_name={{ book.series | urlencode }}">
{% endif %}
{{ book.series }}{% if book.series_number %} #{{ book.series_number }}{% endif %}
{% if book.authors.exists %}