stop the variables page opening a drawer for the instance settings hash (#11129)

Claude-Session: https://claude.ai/code/session_01LCt167dnWJ2EVnLpkHATh4

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alexander Petric
2026-09-15 10:30:19 +02:00
committed by GitHub
co-authored by Claude Opus 5
parent 96963080f1
commit 082d897328
@@ -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 = ''