fix attendance
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user