your personal website on atproto - mirror blento.app

fix event card link

Florian e28faaf6 7f0ef26b

+3 -1
+3 -1
src/lib/cards/social/EventCard/EventCard.svelte
··· 9 9 import { browser } from '$app/environment'; 10 10 import { qrOverlay } from '$lib/components/qr/qrOverlay.svelte'; 11 11 import type { Did } from '@atcute/lexicons'; 12 + import { page } from '$app/state'; 12 13 13 14 let { item }: ContentComponentProps = $props(); 14 15 ··· 92 93 93 94 let eventUrl = $derived(() => { 94 95 if (parsedUri) { 95 - return `/${parsedUri.repo}/events/${parsedUri.rkey}`; 96 + const actorPrefix = page.params.actor ? `/${page.params.actor}` : ''; 97 + return `${actorPrefix}/events/${parsedUri.rkey}`; 96 98 } 97 99 return '#'; 98 100 });