🇫🇷France @gjonc

Account created on 24 June 2014, over 10 years ago
#

Recent comments

🇫🇷France gjonc

Hello, we encountered the same issue using book tokens in pathauto. If ECA is enabled, the token is empty and the node path is incorrect.
We tried and edited band-aid like the one you suggest here and its seems to work.

if ($type === 'book') {
  $real_token_type = 'book';
}

Because books aren't entities, the $real_token_type for book tokens is set to 'node'.

It is unlikely that book module will be refactored with entities. So maybe book tokens need a band-aid like menu-link or specific case in getTokenType.

Production build 0.71.5 2024