fix tag edit

This commit is contained in:
Your Name 2025-01-05 01:02:24 -05:00 committed by Henri Dickson
parent bda4833893
commit d87e156919
4 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@
{% for tag in item.tags %}
{% if forloop.counter <= 5 %}
<span>
<a href="{% url 'common:search' %}?tag={{ tag }}">{{ tag }}</a>
<a href="{% url 'common:search' %}?tag={{ tag|urlencode }}">{{ tag }}</a>
</span>
{% endif %}
{% endfor %}

View file

@ -191,7 +191,7 @@
<div class="tag-list solo-hidden">
{% for tag in item.tags %}
<span>
<a href="{% url 'common:search' %}?tag={{ tag }}">{{ tag }}</a>
<a href="{% url 'common:search' %}?tag={{ tag|urlencode }}">{{ tag }}</a>
</span>
{% endfor %}
</div>

View file

@ -16,7 +16,7 @@
<strong>{% trans 'Edit' %} {{ tag.title }}</strong>
</header>
<div>
<form action="{% url 'journal:user_tag_edit' %}?tag={{ tag.title }}"
<form action="{% url 'journal:user_tag_edit' %}?tag={{ tag.title|urlencode }}"
method="post">
{% csrf_token %}
<input type="hidden" name="id" value="{{ tag.id }}">

View file

@ -17,7 +17,7 @@
{% endif %}
{% if identity.user == request.user %}
<span>
<a hx-get="{% url 'journal:user_tag_edit' %}?tag={{ tag.title }}"
<a hx-get="{% url 'journal:user_tag_edit' %}?tag={{ tag.title|urlencode }}"
hx-target="body"
hx-swap="beforeend">
<i class="fa-regular fa-pen-to-square"></i>