Skip to content

Commit

Permalink
redirect to dashboard after login and fix some typo (#259)
Browse files Browse the repository at this point in the history
Co-authored-by: root <root@LAPTOP-92JQ7GM2>
  • Loading branch information
Chaos0715 and root authored Apr 25, 2024
1 parent b7f0f79 commit 48ff2a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/routes/error/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const handleError = (err, req, res, next) => {
if (!description) {
console.log('Error:', err)
return res.status(404).json({
description: 'unknow error',
description: 'unknown error',
})
}
console.log('Error:', description)
Expand Down
2 changes: 1 addition & 1 deletion client/src/views/out/login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const LoginFormTemplate = {

const Login = () => {
const { search } = useLocation()
const redirectURL = new URLSearchParams(search).get('pathFrom') || '/home'
const redirectURL = new URLSearchParams(search).get('pathFrom') || '/dashboard'

const dispatch = useDispatch()
const { isLogin } = useSelector(selectLogin)
Expand Down
2 changes: 1 addition & 1 deletion doc/contribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ git commit -m {commit message}

## Step 6 Push

After you finished tour work, push this branch to origin.
After you finished your work, push this branch to origin.
Please do not use git pull, since it may create redundant commits.

```
Expand Down

0 comments on commit 48ff2a3

Please sign in to comment.