Shun Miyazawa 4 anni fa
parent
commit
544ca823d4
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      packages/app/src/components/Sidebar/PageTree/Item.tsx

+ 2 - 1
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -281,7 +281,8 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
 
     let initBody = '';
     if (isEnabledAttachTitleHeader) {
-      initBody = pathUtils.attachTitleHeader(newPagePath);
+      const pageTitle = pathUtils.addHeadingSlash(nodePath.basename(newPagePath));
+      initBody = pathUtils.attachTitleHeader(pageTitle);
     }
 
     try {