Skip to content

Temporary page __new__ is not deleted after creating the real page #7042

@bezin

Description

@bezin

Description

The temporary page with slug __new__ will not be deleted after the actual page has been created. As this temporary file contains a page UUID, this will be reused when creating another page, leading to duplicate UUIDs.

In my case, I want to use the uuid as the slug (as I don't care about the slug at all in this particular care). This is why it crashes right in the page creation dialog, because there already is a page with the same slug. I would expect the temporary __new__ page to be deleted in this case, too.

Expected behavior
I can create multiple pages one after another without any issue.

Screenshots
Image

Image

To reproduce

  1. Have the following create option for a page:
create:
  title:
    label: Veranstaltungstitel
  slug: "{{ page.uuid }}"
  1. Create a new page with any title
  2. Create another page with any title

Your setup

Kirby 4.6.1
PHP 8.4
MacOS 15.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions