From aa9fdca3cba1ff7a388e1a10f7a838b60dcbc3c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sun, 25 Jan 2026 10:07:46 +0100 Subject: [PATCH] Preserve page and scroll position when editing tags --- bookmarks/templates/bundles/preview.html | 4 +- bookmarks/templates/shared/pagination.html | 10 ++- bookmarks/templates/tags/edit.html | 6 +- bookmarks/templates/tags/index.html | 6 +- bookmarks/templatetags/pagination.py | 2 + bookmarks/tests/test_pagination_tag.py | 35 ++++++-- bookmarks/tests/test_tags_edit_view.py | 21 ++--- bookmarks/tests/test_tags_index_view.py | 18 ---- .../tests_e2e/e2e_test_tag_management.py | 86 ++++++++++++++++++- bookmarks/views/tags.py | 13 +-- 10 files changed, 142 insertions(+), 59 deletions(-) diff --git a/bookmarks/templates/bundles/preview.html b/bookmarks/templates/bundles/preview.html index 980e3cbd..c29e148e 100644 --- a/bookmarks/templates/bundles/preview.html +++ b/bookmarks/templates/bundles/preview.html @@ -3,6 +3,8 @@
No bookmarks match the current bundle.
{% else %}
Found {{ bookmark_list.bookmarks_total }} bookmarks matching this bundle.
- {% include 'bookmarks/bookmark_list.html' %} + {% with pagination_frame="preview" %} + {% include 'bookmarks/bookmark_list.html' %} + {% endwith %} {% endif %} diff --git a/bookmarks/templates/shared/pagination.html b/bookmarks/templates/shared/pagination.html index b75ddf32..2b84f81a 100644 --- a/bookmarks/templates/shared/pagination.html +++ b/bookmarks/templates/shared/pagination.html @@ -2,7 +2,9 @@