fix: missing title properties when page name contains / or reserved chars

Close #5171
This commit is contained in:
Tienson Qin
2022-05-07 00:39:09 +08:00
parent 2d30f1429d
commit 362c328e91
4 changed files with 29 additions and 17 deletions

View File

@@ -264,7 +264,7 @@
:block/original-name original-page-name}
(when with-id?
(if page-entity
{}
{:block/uuid (:block/uuid page-entity)}
{:block/uuid (db/new-block-id)}))
(when namespace?
(let [namespace (first (gp-util/split-last "/" original-page-name))]