diff --git a/packages/admin/cms-admin/src/pages/createEditPageNode.tsx b/packages/admin/cms-admin/src/pages/createEditPageNode.tsx
index 5e979eedbf..e5f63be154 100644
--- a/packages/admin/cms-admin/src/pages/createEditPageNode.tsx
+++ b/packages/admin/cms-admin/src/pages/createEditPageNode.tsx
@@ -192,6 +192,7 @@ export function createEditPageNode({
if (mode === "edit" && (loading || !data?.page)) {
return ;
}
+
return (
@@ -312,10 +313,6 @@ export function createEditPageNode({
return null;
}
- if (values.slug === "home") {
- return /;
- }
-
const numberOfDescendants = data?.page?.numberOfDescendants ?? 0;
return (
@@ -328,7 +325,11 @@ export function createEditPageNode({
variant="horizontal"
>
- {parentPath}/{values.slug}
+ {values.slug === "home"
+ ? "/"
+ : parentPath === null
+ ? `/${values.slug}`
+ : `${parentPath}/${values.slug}`}
{mode === "edit" && dirtyFields.slug && (