Skip to content

Commit

Permalink
fix: space in token causes 404 on logout
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza Mahjoubi <[email protected]>
  • Loading branch information
hamza221 committed Aug 26, 2024
1 parent 7e41c26 commit 09b202d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/User/UserMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() } })
}
},
Expand Down

0 comments on commit 09b202d

Please sign in to comment.