mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
308 /uid/<uid> to /user/<slug>
This commit is contained in:
@@ -206,7 +206,7 @@ module.exports = function (middleware) {
|
||||
}
|
||||
const path = req.url.replace(/^\/api/, '')
|
||||
.replace(`/uid/${uid}`, () => `/user/${userslug}`);
|
||||
controllers.helpers.redirect(res, path);
|
||||
controllers.helpers.redirect(res, path, true);
|
||||
});
|
||||
|
||||
middleware.redirectMeToUserslug = helpers.try(async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user