🎨 When New document save location is configured as /, it will be completed as /Untitled https://github.com/siyuan-note/siyuan/issues/10305

This commit is contained in:
Daniel 2024-02-04 10:15:28 +08:00
parent 2b37ea5d06
commit 3dc93ff409
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 12 additions and 0 deletions

View file

@ -612,6 +612,9 @@ func getDocCreateSavePath(c *gin.Context) {
if "../" == docCreateSavePathTpl {
docCreateSavePathTpl = "../Untitled"
}
if "/" == docCreateSavePathTpl {
docCreateSavePathTpl = "/Untitled"
}
p, err := model.RenderGoTemplate(docCreateSavePathTpl)
if nil != err {