onLinkClicked() { if(!isAuthenticated) { // If not authenticated, add a path where to redirect after login. this.$router.push({ name: 'login', query: { redirect: '/path' } }); } }