From 74ddf45632aba0671c5f650f9183e3549c18ba92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sun, 21 Dec 2025 10:00:55 +0100 Subject: [PATCH] Fix bookmark details focus restoration --- bookmarks/frontend/behaviors/modal.js | 2 +- bookmarks/templates/bookmarks/details/modal.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bookmarks/frontend/behaviors/modal.js b/bookmarks/frontend/behaviors/modal.js index 6283cdc..2f8c1d5 100644 --- a/bookmarks/frontend/behaviors/modal.js +++ b/bookmarks/frontend/behaviors/modal.js @@ -82,7 +82,7 @@ export class ModalBehavior extends Behavior { const closeUrl = this.element.dataset.closeUrl; const frame = this.element.dataset.turboFrame; if (closeUrl) { - Turbo.visit(closeUrl, { frame: frame }); + Turbo.visit(closeUrl, { action: "replace", frame: frame }); } } } diff --git a/bookmarks/templates/bookmarks/details/modal.html b/bookmarks/templates/bookmarks/details/modal.html index 813165f..15acdcf 100644 --- a/bookmarks/templates/bookmarks/details/modal.html +++ b/bookmarks/templates/bookmarks/details/modal.html @@ -1,5 +1,6 @@