308 /uid/<uid> to /user/<slug>

isekai-main
Barış Soner Uşaklı 1 year ago
parent 35e689cff5
commit 9e829b983d

@ -206,7 +206,7 @@ module.exports = function (middleware) {
} }
const path = req.url.replace(/^\/api/, '') const path = req.url.replace(/^\/api/, '')
.replace(`/uid/${uid}`, () => `/user/${userslug}`); .replace(`/uid/${uid}`, () => `/user/${userslug}`);
controllers.helpers.redirect(res, path); controllers.helpers.redirect(res, path, true);
}); });
middleware.redirectMeToUserslug = helpers.try(async (req, res) => { middleware.redirectMeToUserslug = helpers.try(async (req, res) => {

Loading…
Cancel
Save