upgrade to tamagui v2 and guest pwa overhaul
This commit is contained in:
13
resources/js/guest-v2/lib/routes.ts
Normal file
13
resources/js/guest-v2/lib/routes.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export function buildEventPath(token: string | null, path: string): string {
|
||||
const normalized = path.startsWith('/') ? path : `/${path}`;
|
||||
|
||||
if (!token) {
|
||||
return normalized;
|
||||
}
|
||||
|
||||
if (normalized === '/') {
|
||||
return `/e/${encodeURIComponent(token)}`;
|
||||
}
|
||||
|
||||
return `/e/${encodeURIComponent(token)}${normalized}`;
|
||||
}
|
||||
Reference in New Issue
Block a user