I am attempting to use the provided [current-page:page-title] as a token in pathauto for auto-generating URLs. (Since I want the URL to be the page title, and not the title provided in the "Title" field for the node.)

However, on the first save of the page, this token seems to return "create-basic-page" as the title, and thus this becomes part of the URL. E.g., http://dev.site/content/create-basic-page

If I go in and edit the page again and re-save it, the token seems to return the correct result, and the URL is updated to the one I desire. E.g., http://dev.site/content/my-page-title

However, I can't ask my users to edit every page twice to fix the URL, so it would be good if this could be corrected :-)

Thanks!

Comments

dgastudio’s picture

Issue summary: View changes

same here, any fix?

jsfry’s picture

Same here. Exactly as described above - have set for the url token: current-page:title (from Content). I am getting : "create-basic-page", "create-basic-page-0", "create-basic-page-1", etc. Info for my local dev setup is a new installation of dru 8.1.1 and i've only added ctools, token and pathauto modules so far. Theme is nexus:

Drupal version : 8.1.1
Site URI : http://default
Database driver : mysql
Database hostname : localhost

Drupal bootstrap : Successful
Drupal user :
Default theme : nexus
Administration theme : seven

PHP OS : Linux