Skip to content

Commit

Permalink
BC-4900 - Red line shows when removing task (#3306)
Browse files Browse the repository at this point in the history
*fix redirect
  • Loading branch information
davwas authored Sep 22, 2023
1 parent 8b7754f commit 8251a45
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 8251a45

Please sign in to comment.