From 21bda28910eefa6cde1bfaa27b1bc34e319efe72 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 1 Dec 2025 04:36:17 -0800 Subject: [PATCH] fix: always use explicit tab path in URL --- src/lib/components/party/Party.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/party/Party.svelte b/src/lib/components/party/Party.svelte index e25993cf..1a72d1b0 100644 --- a/src/lib/components/party/Party.svelte +++ b/src/lib/components/party/Party.svelte @@ -281,8 +281,9 @@ function handleTabChange(tab: GridType) { // Update URL (adds to browser history) // activeTab is derived from URL params, so it will update automatically + // Always use explicit tab path (e.g., /weapons not just /) to ensure navigation triggers const basePath = `/teams/${party.shortcode}` - const newPath = tab === GridType.Weapon ? basePath : `${basePath}/${tab}s` + const newPath = `${basePath}/${tab}s` goto(newPath, { noScroll: true, keepFocus: true }) // Update selectedSlot to the first valid empty slot for this tab