From 370dfd95bcaf614a54116f9b0b2d56e518ac79bf Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Thu, 11 Jun 2026 16:53:00 +0300 Subject: [PATCH] feat(frontend): remember each section's last list URL in the navbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bottom-nav links pointed at the bare section roots, so leaving a list and tapping its tab again dropped the active filter/sort in the query string. The root layout (which never unmounts) now records the last list root URL — including its query — per section on navigation, and the nav links target that remembered URL. Only the list root is recorded, so detail pages, the trash sub-view, and the shallow-routed file viewer don't hijack the tab. Co-Authored-By: Claude Opus 4.8 --- frontend/src/routes/+layout.svelte | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 8f8e6a8..64bf64c 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -1,6 +1,7 @@ {@render children()} @@ -43,7 +59,12 @@