mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
redirect if category is accessed directly
This commit is contained in:
@@ -720,6 +720,10 @@ if(nconf.get('ssl')) {
|
||||
return res.redirect('404');
|
||||
}
|
||||
|
||||
if(data.categories.link) {
|
||||
return res.redirect(data.categories.link);
|
||||
}
|
||||
|
||||
var category_url = cid + (req.params.slug ? '/' + req.params.slug : '');
|
||||
|
||||
res.send(
|
||||
|
||||
Reference in New Issue
Block a user