Bug description: a page can't be deleted using the edit view button. It can only be deleted using the list view.
Requirements to reproduce: Docker Desktop and Visual Studio Code with the Dev Containers extension installed.
-
Clone this repository
-
Create
.env.local
file with the following content:DATABASE_URL="mysql://root:@db:3306/app?serverVersion=11.0.2-MariaDB&charset=utf8mb4" MAILER_DSN=null://null
-
Open Visual Studio Code and reopen the project in Container
-
Run the following:
composer install
bin/console doctrine:migrations:migrate -n
bin/console sonata:page:create-site --name=localhost --host=localhost --relativePath="" --enabled --enabledFrom=- --enabledTo=- --default --locale=-
bin/console sonata:page:update-core-routes --site=all
bin/console sonata:page:create-snapshots --site=all
-
Create the user
foo
with passwordbar
:bin/console sonata:user:create foo foo@example.com bar --super-admin
-
Access http://localhost/admin/app/sonatapagepage/create and create a new page named i.e. "foo"
-
Delete the page "foo" from the edit page