diff --git a/src/libpoketube/init/pages-404-and-main.js b/src/libpoketube/init/pages-404-and-main.js index 66b0ea9c..695d1c75 100644 --- a/src/libpoketube/init/pages-404-and-main.js +++ b/src/libpoketube/init/pages-404-and-main.js @@ -133,7 +133,10 @@ module.exports = function (app, config, renderTemplate) { if (isvld && req.params.v.length >= 10) { return res.redirect(`/watch?v=${req.params.v}`); } else { - return res.redirect("/") + return renderTemplate(res, req, "404.ejs", { + isOldWindows, + random + }); } }