diff --git a/wire/core/PagesNames.php b/wire/core/PagesNames.php index 7b0cff98..e04b63fb 100644 --- a/wire/core/PagesNames.php +++ b/wire/core/PagesNames.php @@ -320,6 +320,10 @@ class PagesNames extends Wire { $name = trim((string) $page->title); $formatType = 'field'; + } else if($format === 'id' && $page->id) { + // page ID, when it is known + $name = (string) $page->id; + } else if($format === 'random') { // globally unique randomly generated page name $name = $this->uniqueRandomPageName();