Problem/Motivation

After I create a new node that has a Pathauto pattern set for it, the alias gets created but the node returns Page not found (404) for the same user.

The node exists and can be edited via /edit. Going to its raw URL just redirects to the alias. Appending ?1 or any other parameter to the alias does not result in a 404 and displays the node. Clearing all caches or just the route cache via drush cc also addresses the 404 problem. Same for removing the applicable Pathauto patterns or unchecking the Generate automatic URL alias box and entering an alias manually.

I don't believe the issue existed in Drupal 11.3, but it does in Drupal 11.4, with no contrib modules installed in between. Cloudflare is not at play, as setting it to the development mode does not help.

Steps to reproduce

It is unclear how to reproduce the issue. Doing a fresh install of Drupal 11.4 and installing some of the same modules as we have in production, Pathauto, sub path auto, Redirect, ECA, File Field Paths and DANSE, then setting Pathauto to the same patterns does not recreate the issue. I'm hoping for advice on how to troubleshoot this further.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

rozzi created an issue. See original summary.

rozzi’s picture

Title: Page not found when a pattern is assigned » Page not found for new nodes with a pattern assigned
rozzi’s picture

Issue summary: View changes
rozzi’s picture

Status: Active » Closed (duplicate)
Related issues: +#3608478: Memcache Transaction-Aware Issue After Upgrading to Pathauto 1.15

The fix of the other issue works here, so I'll continue there even if I don't believe we use memcache.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.