diff --git a/src/modules/events/client/components/EventBadge.tsx b/src/modules/events/client/components/EventBadge.tsx index 74e9dd69..35abb5e7 100644 --- a/src/modules/events/client/components/EventBadge.tsx +++ b/src/modules/events/client/components/EventBadge.tsx @@ -18,7 +18,7 @@ export const EventBadge: React.FC = ({ withApplyButton = false, requiresAction = false, }) => { - const url = React.useMemo(() => `/events/${event.id}`, [event]) + const url = React.useMemo(() => `/event/${event.id}`, [event]) const now = dayjs() const [startDate, endDate] = [event.startDate, event.endDate].map(dayjs) const isToday = now >= startDate && now <= endDate diff --git a/src/modules/events/client/components/EventPage.tsx b/src/modules/events/client/components/EventPage.tsx index a0b334b6..c4dde7ee 100644 --- a/src/modules/events/client/components/EventPage.tsx +++ b/src/modules/events/client/components/EventPage.tsx @@ -185,7 +185,7 @@ export const EventPage = () => { ) : null} @@ -386,7 +386,7 @@ export const EventPage = () => { size="small" label="Sign in to apply for the event" className="w-full h-full" - callbackPath={`/events/${eventId}`} + callbackPath={`/event/${eventId}`} /> )} {providers.includes('polkadot') && ( @@ -398,7 +398,7 @@ export const EventPage = () => { className="bg-black hover:opacity-80 hover:bg-black w-full" provider="polkadot" currentState={'Login'} - callbackPath={`/events/${eventId}`} + callbackPath={`/event/${eventId}`} /> )} diff --git a/src/modules/hub-map/server/helpers/index.ts b/src/modules/hub-map/server/helpers/index.ts index 14775deb..34be8e20 100644 --- a/src/modules/hub-map/server/helpers/index.ts +++ b/src/modules/hub-map/server/helpers/index.ts @@ -73,7 +73,7 @@ export const formatEvent = ( applicationStatus: EventApplicationStatus, complete: boolean ) => { - const url = `/events/${event.id}` + const url = `/event/${event.id}` const now = dayjs() const start = dayjs(event.startDate) const end = dayjs(event.endDate)