[current-page:title] creates alias of admin title rather than content title on initial node save

Created on 13 March 2025, 20 days ago

Problem/Motivation

If I use [current-page:title] as my pattern, it creates a page alias of for my content. I expect it to create the same page alias as if I had used [node:title] as my pattern.

Steps to reproduce

Steps:
1. Go to Simply Test
2. In Evaluate Drupal projects, type pathauto
3. In the auto suggest, choose Pathauto
4. Click Build button
5. Log in to test instance
6. Go to /admin/config/search/path/patterns/add
7. Click in Path pattern
8. Click Browse available tokens
9. Expand Current page
10. Click [current-page:title]
11. Check Basic page
12. In Label field, type basic page
13. Click Save
14. Go to /node/add/page
15. In the title field, type aaa
16. Scroll down to and click Save

Expected result: New page has URL of /aaa
Actual result: New page has URL of /create-basic-page

Workaround:
9. Expand Node
10. Click [node:title]

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.13

Component

Code

Created by

🇺🇸United States charles belov San Francisco, CA, US

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

Comments & Activities

Production build 0.71.5 2024