From 09b202d97005f49855fd0a16e70b7e64d3f1b9bb Mon Sep 17 00:00:00 2001 From: Hamza Mahjoubi Date: Mon, 26 Aug 2024 18:57:37 +0200 Subject: [PATCH] fix: space in token causes 404 on logout Signed-off-by: Hamza Mahjoubi --- src/js/components/User/UserMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/components/User/UserMenu.vue b/src/js/components/User/UserMenu.vue index 048d54db4..3c7605c74 100644 --- a/src/js/components/User/UserMenu.vue +++ b/src/js/components/User/UserMenu.vue @@ -210,7 +210,7 @@ export default { logout() { const reRouteTo = deleteCookieByValue(this.$route.params.token) if (reRouteTo) { - this.$router.push({ name: 'publicVote', params: { token: reRouteTo } }) + this.$router.push({ name: 'publicVote', params: { token: reRouteTo.trim() } }) } },