mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +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);
|
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
|
order = data.order || cid; // If no order provided, place it at the end
|
||||||
|
|
||||||
var category = {
|
var category = {
|
||||||
|
|||||||
Reference in New Issue
Block a user