🐛 | ECA: Event - Condition - Action | When ECA is active, token replacement in pathauto no longer works
🇫🇷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.