- Issue created by @Gábor Hojtsy
- 🇭🇺Hungary Gábor Hojtsy Hungary
@mglaman suggests this is caused by pathato being enabled, and indeed, I have pathauto in xb-demo. I don't know if @pameela has pathauto, but I assume she was testing with Drupal CMS 2.x which has it.
When pathauto is installed, this hook is useful to work around this per @mglaman:
#[Hook('xb_page_presave')] public function ensurePathautoSkipped(Page $page): void { $page->get('path')->first()->set('pathauto', PathautoState::SKIP); }
- 🇭🇺Hungary Gábor Hojtsy Hungary
Attached patch for composer patching needs (eg. in xb-demo).
I think some form of this needs to go to XB to make it viable on a site. Not the fix as-is, although it is nicely compartmentalised outside of the normal XB flow to show it is a workaround. Will leave it to maintainers to triage though :)