fix tag edit
This commit is contained in:
parent
bda4833893
commit
d87e156919
4 changed files with 4 additions and 4 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 }}">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue