Polish HTML structure of the response in the res.redirect() function (#5167)