Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

redirect to dashboard after login in vue

onLinkClicked() {
    if(!isAuthenticated) {
        // If not authenticated, add a path where to redirect after login.
        this.$router.push({ name: 'login', query: { redirect: '/path' } });
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #redirect #dashboard #login #vue
ADD COMMENT
Topic
Name
9+7 =