Skip to content

Commit

Permalink
feat(SignIn): proper redirect when sign-in is required
Browse files Browse the repository at this point in the history
  • Loading branch information
TTalex committed Jan 18, 2025
1 parent a48c78d commit 198daa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/router.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/views/SignIn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export default {
})
},
done() {
this.$router.push({ path: '/dashboard', query: { signinSuccess: 'true' } })
const path = this.$route.query.redirect || '/dashboard'
this.$router.push({ path: path, query: { signinSuccess: 'true' } })
}
},
};
Expand Down

0 comments on commit 198daa9

Please sign in to comment.