save slug correctly on edit

This commit is contained in:
Ben Lubar
2016-03-22 19:51:31 -05:00
parent 89aa06526d
commit 1d9ff2bc70

View File

@@ -118,7 +118,7 @@ module.exports = function(Posts) {
if (title) {
topicData.title = title;
topicData.slug = tid + '/' + utils.slugify(title);
topicData.slug = tid + '/' + (utils.slugify(title) || 'topic');
}
if (data.topic_thumb) {