Merge pull request #3023 from dato/series_name_urlencode

URL-encode book series name when linking to it
This commit is contained in:
Jascha Ezra Urbach 2023-10-14 13:56:38 +02:00 committed by GitHub
commit d7ba0e3a8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@
<meta itemprop="volumeNumber" content="{{ book.series_number }}"> <meta itemprop="volumeNumber" content="{{ book.series_number }}">
{% if book.authors.exists %} {% 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 %} {% endif %}
{{ book.series }}{% if book.series_number %} #{{ book.series_number }}{% endif %} {{ book.series }}{% if book.series_number %} #{{ book.series_number }}{% endif %}
{% if book.authors.exists %} {% if book.authors.exists %}