From a33ae8ca99f20f767d40d5bf76730a3b7eb251f5 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 5 Sep 2025 17:29:22 -0400 Subject: [PATCH 1/5] changed share to do /id or /history/id (and it works now) --- src/frontend/src/components/ShareEventButton.vue | 3 +-- src/frontend/src/router/index.ts | 7 +------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/frontend/src/components/ShareEventButton.vue b/src/frontend/src/components/ShareEventButton.vue index 7ef11fa..3dd2b0b 100644 --- a/src/frontend/src/components/ShareEventButton.vue +++ b/src/frontend/src/components/ShareEventButton.vue @@ -14,9 +14,8 @@ export default defineComponent({ methods: { copyLink() { const popupStore = usePopupStore(); - const baseUrl = window.location.host; - const urlToCopy = baseUrl + '/event/' + this.eventId; + const urlToCopy = window.location.href; try { navigator.clipboard.writeText(urlToCopy); diff --git a/src/frontend/src/router/index.ts b/src/frontend/src/router/index.ts index bbf698e..2f61901 100644 --- a/src/frontend/src/router/index.ts +++ b/src/frontend/src/router/index.ts @@ -42,7 +42,7 @@ async function handleEventIdRedirects( if (isInPast) { return { path: `/history/${to.params.id}` }; } else { - return { path: `${to.params.id}` }; + return { path: `/${to.params.id}` }; } } @@ -89,11 +89,6 @@ const router = createRouter({ props: (route) => ({ id: Number(route.params.id) }) } ] - }, - { - path: '/event/:id', - beforeEnter: handleEventIdRedirects, - component: NoEventDetails // This never gets used but has to be here for the beforeEnter to be called } ] }); From 058e5abb87c0521a42b2f1d631651fd419c7c82f Mon Sep 17 00:00:00 2001 From: Noah Date: Sat, 6 Sep 2025 22:56:14 -0400 Subject: [PATCH 2/5] fix current events being broken and mobile ui --- src/frontend/src/App.vue | 2 +- src/frontend/src/router/index.ts | 2 +- src/frontend/src/stores/events.ts | 38 +++++++++++++++-- src/frontend/src/views/HomeView.vue | 66 +++++++++++++---------------- 4 files changed, 67 insertions(+), 41 deletions(-) diff --git a/src/frontend/src/App.vue b/src/frontend/src/App.vue index 633f8bb..05ceca5 100644 --- a/src/frontend/src/App.vue +++ b/src/frontend/src/App.vue @@ -7,7 +7,7 @@ import PopupGroup from './components/PopupGroup.vue';