fix: always use explicit tab path in URL
This commit is contained in:
parent
5063e8e73c
commit
21bda28910
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue