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 = () => {