kosei-n %!s(int64=2) %!d(string=hai) anos
pai
achega
07b80d2468
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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 = () => {