Skip to content

Node.js based forum software built for the modern web

save slug correctly on edit

Ben Lubar1d9ff2bc7016
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) {