Skip to content

Commit

Permalink
fix redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
davwas committed Sep 14, 2023
1 parent ac493c1 commit ac6f0e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/homework.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,7 @@ const getDeleteHandler = (service, redirectToReferer) => (req, res, next) => {
if (redirectToReferer) {
redirectHelper.safeBackRedirect(req, res);
} else {
res.sendStatus(200);
res.redirect(`/${service}`);
res.redirect(200, `/${service}`);
}
}).catch((err) => {
next(err);
Expand Down

0 comments on commit ac6f0e6

Please sign in to comment.