fix: stop the variables page opening a drawer for the instance settings hash

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LCt167dnWJ2EVnLpkHATh4
This commit is contained in:
Alex Petric
2026-09-14 21:19:59 -04:00
co-authored by Claude Opus 5
parent 75ee497011
commit 57e690b909
@@ -264,7 +264,9 @@
let handledHash = ''
$effect(() => {
const hash = $page.url.hash
if (hash.length <= 1) {
// Only item paths are drawer targets: the same hash also carries global
// drawers like #superadmin-settings, which must not be looked up as a variable.
if (!/^#[ufg]\//.test(hash)) {
// Navigating away from a drawer target must clear the tracker, or
// re-targeting the same item later would be skipped as already handled.
handledHash = ''