From 22421e893b866d8815607b0ea8e364e7eaaa0008 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Wed, 11 Mar 2026 21:52:50 +0100 Subject: [PATCH 1/3] fix routing to 404 Signed-off-by: dartcafe --- src/components/Public/PublicRegisterModal.vue | 11 +++++++---- src/views/Vote.vue | 5 +++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/Public/PublicRegisterModal.vue b/src/components/Public/PublicRegisterModal.vue index 07d4ed31a7..6e87ea3648 100644 --- a/src/components/Public/PublicRegisterModal.vue +++ b/src/components/Public/PublicRegisterModal.vue @@ -147,7 +147,8 @@ const emailAddressHint = computed(() => { const validateEmailAddress = debounce(async function (): Promise { if (emailAddress.value.length < 1) { - checkStatus.value.email = sessionStore.share.publicPollEmail === 'mandatory' ? 'missing': 'empty' + checkStatus.value.email = + sessionStore.share.publicPollEmail === 'mandatory' ? 'missing' : 'empty' return } @@ -181,7 +182,7 @@ function routeToPersonalShare(token: string): void { // if share was not a public share, but a personal share // (i.e. email shares allow to change personal data by fist entering of the poll), // just refresh the session and load the poll - sessionStore.load() + sessionStore.loadSession() pollStore.load() } else { // in case of a public share, redirect to the generated share @@ -246,8 +247,10 @@ onMounted(() => { if (route.name === 'publicVote') { // TODO: remove displayName at controller side // this ist just a quick fix - sessionStore.currentUser.displayName = route.query.displayName as string || '' - sessionStore.currentUser.emailAddress = route.query.emailAddress as string || '' + sessionStore.currentUser.displayName = + (route.query.displayName as string) || '' + sessionStore.currentUser.emailAddress = + (route.query.emailAddress as string) || '' } // pre-fill input field with existing data diff --git a/src/views/Vote.vue b/src/views/Vote.vue index d4aeea0b88..12d973d3b1 100644 --- a/src/views/Vote.vue +++ b/src/views/Vote.vue @@ -5,7 +5,7 @@