diff --git a/controllers/homework.js b/controllers/homework.js index 1a87b5ca0d..f908914e21 100644 --- a/controllers/homework.js +++ b/controllers/homework.js @@ -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);