diff --git a/src/libpoketube/init/pages-api.js b/src/libpoketube/init/pages-api.js index cee9161a..67b4b42f 100644 --- a/src/libpoketube/init/pages-api.js +++ b/src/libpoketube/init/pages-api.js @@ -137,7 +137,7 @@ module.exports = function (app, config, renderTemplate) { }); app.get("/api/redirect", async (req, res) => { - const red_url = req.query.u; + const red_url = atob(req.query.u); if (!red_url) { res.redirect("/");