fix navigation in staging
All checks were successful
/ build (pull_request) Successful in 52s

This commit is contained in:
kritzl 2026-10-04 14:28:26 +02:00
commit f832ec2f17
Signed by: kritzl
SSH key fingerprint: SHA256:5BmINP9VjZWaUk5Z+2CTut1KFhwLtd0ZynMekKbtViM

View file

@ -37,7 +37,7 @@ const events: Record<string, Array<{
],
}
const currentEventPath = Object.keys(events).filter(event => route.startsWith(event))[0]
const currentEventPath = Object.keys(events).filter(event => route.startsWith(path(import.meta.env.BASE_URL, event)))[0]
const event = events[currentEventPath] ?? events["fallback"]
---