From 1d9ff2bc7016d16e1f91d390bb7e4a620d5d96dc Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Tue, 22 Mar 2016 19:51:31 -0500 Subject: [PATCH] save slug correctly on edit --- src/posts/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/edit.js b/src/posts/edit.js index d4c3a3c732..fece8aa640 100644 --- a/src/posts/edit.js +++ b/src/posts/edit.js @@ -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) {