Can't Create Custom Path Without Pathauto Checked

Created on 5 January 2024, over 1 year ago
Updated 14 January 2024, over 1 year ago

Problem/Motivation

I'm currently facing an issue when saving a content entity where the pathauto checkbox is disabled and the user has entered a custom path to use. The custom alias is being saved correctly into the domain path entity. The issue arises when the alias is saved into the alias table, as it uses the generated alias instead, resulting in the page not showing. If you update the path alias to use the custom path, it works as expected.

Steps to reproduce

  1. Create a new content entity in Drupal.
  2. Don't check the PathAuto checkbox is for the entity.
  3. Enter a custom path as the alias.
  4. Save the entity.
  5. Verify that the custom alias is correctly saved into the domain path entity.
  6. Notice that the generated alias is used instead of the custom alias.
  7. Access the page using the generated alias and observe that it does not show the expected content.
  8. Update the path alias in the alias table to use the custom path.
  9. Access the page again using the custom alias and verify that it now shows the expected content.
πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States droath

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

Comments & Activities

Production build 0.71.5 2024