kosei-n 2 سال پیش
والد
کامیت
07b80d2468
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      apps/app/src/components/PageHeader/PagePathHeader.tsx

+ 3 - 1
apps/app/src/components/PageHeader/PagePathHeader.tsx

@@ -67,7 +67,9 @@ export const PagePathHeader: FC<Props> = (props) => {
   ), [currentPagePath, isEditorMode, parentPagePath]);
 
   const handleInputChange = (inputText: string) => {
-    setEditedPagePath(inputText);
+    const editingParentPagePath = inputText;
+    const newPagePath = nodePath.resolve(editingParentPagePath, pageTitle);
+    setEditedPagePath(newPagePath);
   };
 
   const handleEditButtonClick = () => {