Page path alias is not actually saved

Created on 21 August 2025, 3 days ago

Overview

I reproduced this with current xb-demo but @pameela reproduced it outside of xb-demo too.

  • When creating new pages a path alias is suggested but when saving it it is not actually saved (and not loaded back either).
  • When creating a path alias outside of XB, that is properly applied and loaded back on the admin UI. However, read on...
  • When editing existing pages, path alias changes are not actually saved (if there was a manual path alias, since we could not add one from the XB UI).

Video attached showing the new page creation flow not saving path alias (this is using xb-demo, but @pameela reproduced this outside of xb-demo too).

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

1.0

Component

… to be triaged

Created by

🇭🇺Hungary Gábor Hojtsy Hungary

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • 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);
      }
    
  • Merge request !1463Ensure pathauto is skipped for xb pages → (Open) created by Gábor Hojtsy
  • 🇭🇺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 :)

  • Pipeline finished with Failed
    3 days ago
    Total: 877s
    #578287
Production build 0.71.5 2024