Skip to content

Commit

Permalink
fix: close button preserve query params (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Jul 11, 2024
1 parent 3482a6d commit 441b98f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unfold/templates/admin/submit_line.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
{% endif %}

{% if show_close %}
<a href="{% url opts|admin_urlname:'changelist' %}" class="border font-medium hidden px-3 py-2 rounded-md text-sm text-gray-500 transition-all w-full hover:bg-gray-50 lg:block lg:w-auto dark:border-gray-700 dark:text-gray-400 dark:hover:text-gray-200 dark:hover:bg-gray-900">
{% url opts|admin_urlname:'changelist' as changelist_url %}

<a href="{% add_preserved_filters changelist_url %}" class="border font-medium hidden px-3 py-2 rounded-md text-sm text-gray-500 transition-all w-full hover:bg-gray-50 lg:block lg:w-auto dark:border-gray-700 dark:text-gray-400 dark:hover:text-gray-200 dark:hover:bg-gray-900">
{% translate 'Close' %}
</a>
{% endif %}
Expand Down

0 comments on commit 441b98f

Please sign in to comment.