Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently we rely on the magical token naming convention of -path and -alias suffixes to skip certain processing, like removing backslashes, etc. I think we should probably use core's hook_token_info and put the definition of which tokens are URLs directly in the token's description array.
For instance:
pathauto_token_info_alter(&$info) {
$info['tokens']['node']['url']['url'] = TRUE;
$info['tokens']['menu']['path']['url'] = TRUE;
}
Comments
Comment #1
Dave ReidMarking this postponed for now. This may not be necessary.