- Issue created by @charles belov
- 🇨🇭Switzerland berdir Switzerland
It's doing exactly what it says. It uses the title of the current *page*. Page in this has nothing to do with nodes, it's just about the current request. In pathauto pattern, *always* use entity patterns, not something else.
- 🇮🇳India sorabh.v6 Indore
@charles belov I went through the steps and I am able to reproduce the issue. But it is working correctly. I will try to explain.
[current-page:title] token gives you the title of current page. And the title of node add form is Create Basic Page and therefore the pathauto is creating the alias as /create-basic-page.
The method that you are stating as workaround is actually the correct way of creating alias using the node title.
For more clarity refer this code https://git.drupalcode.org/project/token/-/blob/8.x-1.x/token.tokens.inc...
Marking this issue as works as designed and unassigning myself.
Thanks