diff --git a/packages/features/insights/server/trpc-router.ts b/packages/features/insights/server/trpc-router.ts index 0ba120dc75..6a62434647 100644 --- a/packages/features/insights/server/trpc-router.ts +++ b/packages/features/insights/server/trpc-router.ts @@ -507,7 +507,7 @@ export const insightsRouter = router({ let eventSlug = ""; if (eventTypeSelected.userId) { - eventSlug = `${eventTypeSelected?.slug}/${eventTypeSelected?.users[0]?.username}`; + eventSlug = `${eventTypeSelected?.users[0]?.username}/${eventTypeSelected?.slug}`; } if (eventTypeSelected?.team && eventTypeSelected?.team?.slug) { eventSlug = `${eventTypeSelected.team.slug}/${eventTypeSelected.slug}`;