- Issue created by @SAHIL ROHILLA01
- 🇮🇳India manpreet_singh
Hello @sahil rohilla01
Is this issue occur only during bulk generation, or will it also happen when creating individual entities?
Thank you
- 🇮🇳India SAHIL ROHILLA01
@manpreet_singh , this isssue is coming during node creation and bulk pathauto pattern
- 🇮🇳India DhruvR
Hello @sahil,
The issue you're facing with the [customentityname:original:label] token occurs because the original parameter isn’t designed to fetch the label in the default language. Instead, it retrieves the previous version of the entity’s label (or other field values) before any updates.
For example, this feature is often used in scenarios like hook_presave to compare the current value with the previous one, such as:
if ($entity->field_date->value != $entity->original->field_date->value) { // Perform some logic. }
Unfortunately, this means the token won’t resolve the way you’re expecting for multilingual alias generation. If your goal is to use the default language label, you might need custom token logic to achieve that.
Let me know if you’d like further guidance!