Skip to content

Commit

Permalink
fix tag edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jan 5, 2025
1 parent bda4833 commit d87e156
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion catalog/templates/_item_card_metadata_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h5>
{% 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 %}
Expand Down
2 changes: 1 addition & 1 deletion catalog/templates/item_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h3>
<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>
Expand Down
2 changes: 1 addition & 1 deletion journal/templates/tag_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}">
Expand Down
2 changes: 1 addition & 1 deletion journal/templates/user_tagmember_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit d87e156

Please sign in to comment.