From 8251a45d7ec285885210228ad4fdadf54edfb482 Mon Sep 17 00:00:00 2001 From: davwas Date: Fri, 22 Sep 2023 15:30:44 +0200 Subject: [PATCH] BC-4900 - Red line shows when removing task (#3306) *fix redirect --- controllers/homework.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);