mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
Adding the ability to use a different url
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = function(Categories) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
var slug = cid + '/' + utils.slugify(data.name),
|
||||
var slug = data.slug ? cid + '/' + data.slug : cid + '/' + utils.slugify(data.name),
|
||||
order = data.order || cid; // If no order provided, place it at the end
|
||||
|
||||
var category = {
|
||||
|
||||
Reference in New Issue
Block a user