Bug #93328
openredirect for empty slug
0%
Description
Adding a slug to a page with before empty slug creates a redirect for the root-page and breaks so the whole site.
Considering #93327 I would at least get a warning about it but adding a redirect for the root-page without further automatic checks is devastating.
I propose a check for pages without slug and also if the current page had a slug before as requirement to create a redirect for those pages - including reasonable decisions based on the findings. Nevertheless, the final decision has to be shown for confirmation like described in #93327 as the proposed tests would be quite limited without further context.
Updated by Andreas Kießling over 3 years ago
We just had this error on a site due to a misconfiguration of the editor role. They did not have the slug field after a core update, thus newly created pages had no slug. Later they were "fixed" and we ended up with automatically created root level redirects.
I tend to disable the automatic creation of redirects for all our setups, this is just too error prone and unintuitive.