fix attendance

This commit is contained in:
root
2026-06-04 20:49:24 -04:00
parent dec023f03e
commit 647b96cafc
9 changed files with 650 additions and 94 deletions
+4
View File
@@ -8,6 +8,10 @@ export function spaPathFromCiUrl(url: string | null | undefined): string | null
const path = u.replace(/^\/+/, '').replace(/\/+$/, '')
if (!path) return '/app/home'
if (path === 'app' || path.startsWith('app/')) {
return `/${path}`
}
const querySuffix = path.includes('?') ? `?${path.slice(path.indexOf('?') + 1)}` : ''
const pathOnly = path.split('?')[0] ?? path