mirror of
https://github.com/outline/outline.git
synced 2026-11-24 23:00:18 +03:00
fix: url not returned for new docs
This commit is contained in:
1 parent
7c0ddf7efb
commit
4ca2d3776e
1 file changed
+1
-4
@@ -96,10 +96,7 @@ const Document = sequelize.define(
|
||||
},
|
||||
getterMethods: {
|
||||
url: function () {
|
||||
if (!this.title) {
|
||||
return;
|
||||
}
|
||||
const slugifiedTitle = slugify(this.title);
|
||||
const slugifiedTitle = slugify(this.title || "untitled");
|
||||
return `/doc/${slugifiedTitle}-${this.urlId}`;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user