diff --git a/src/lib/cards/social/EventCard/EventCard.svelte b/src/lib/cards/social/EventCard/EventCard.svelte index 481ac7c..3896ccb 100644 --- a/src/lib/cards/social/EventCard/EventCard.svelte +++ b/src/lib/cards/social/EventCard/EventCard.svelte @@ -9,6 +9,7 @@ import { browser } from '$app/environment'; import { qrOverlay } from '$lib/components/qr/qrOverlay.svelte'; import type { Did } from '@atcute/lexicons'; + import { page } from '$app/state'; let { item }: ContentComponentProps = $props(); @@ -92,7 +93,8 @@ let eventUrl = $derived(() => { if (parsedUri) { - return `/${parsedUri.repo}/events/${parsedUri.rkey}`; + const actorPrefix = page.params.actor ? `/${page.params.actor}` : ''; + return `${actorPrefix}/events/${parsedUri.rkey}`; } return '#'; });