No luck with this. Will have to wait for @psychobunny to share some tips.
customized category slug
-
Category slug consist cid and slugify category name.
var slug = cid + '/' + utils.slugify(data.name);
Is it possiable give a custom setting like this?
var extSlug = custSlug || utils.slugify(data.name); var slug = cid + '/' + extSlug;
While custSlug set at category setting page.
-
@niro i want to know too~
Does anyone show how to make it right ?
-
Hi all, are there any solution for this ?
-
@niro hi, have you solved this problem out ?
-
@Jam No
-
-
You should be able to modify the slug in the hook
'filter:category.update'
Which is where the slug is set.
https://github.com/NodeBB/NodeBB/blob/c9f285a883104cb87802fae8c5d321dea8154680/src/categories/update.js#L32-L36