Default status to 'listed' creates a draft page which conflicts with the listed one

Related to :

I have a hook (inside a plugin) that put my pages on ‘listed’ automatically but something weird happens on some of them (in nested pages usually) : it keeps the draft page and then conflicts with the listed one.

'hooks' => [
        'page.create:after' => function ($page) {

Here is a video to explain:

ARe there any other hooks that might interfere?

I think there is another option to force listed pages that is probably more reliable: overriding the create() page method in a model.

Actually, I think you are right.
I feel like it comes from another hook in the AutoID plugin from @bnomei

After commenting this line it works again :man_shrugging:t2: :

Then instead of fiddling with the AutoID plugin, I’d consider the alternative method.

Yes, I’ll have a look at this. Thanks again.

Let us know if and when you need further details. but should be rather straightforward.