diff --git a/src/App.vue b/src/App.vue index 5eacb532..84578bf5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -48,9 +48,6 @@ export default defineComponent({ }, beforeMount() { this.setupOnlineStatus() - this.setupPasswortResetRedirect() - this.setupEmailVerificationRedirect() - this.setupAccountDeletionVerification() }, beforeCreate() { setLanguage() @@ -64,6 +61,18 @@ export default defineComponent({ this.$router.push({name: 'home'}) } }, + watch: { + // Calling these methods in the mounted hook directly does not work. + '$route.query.accountDeletionConfirm'() { + this.setupAccountDeletionVerification() + }, + '$route.query.userPasswordReset'() { + this.setupPasswortResetRedirect() + }, + '$route.query.userEmailConfirm'() { + this.setupEmailVerificationRedirect() + }, + }, computed: { isTouch() { return isTouchDevice()