Score:0

No link template Error on saving node having field referencing a particular taxonomy vocabulary

id flag

I am getting the following error on saving a node.

Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template '' found for the 'taxonomy_term' entity type in Drupal\Core\Entity\EntityBase->toUrl() (line 196 of /opt/app-root/src/web/core/lib/Drupal/Core/Entity/EntityBase.php). 

I realised that this happens to any content type having a field referencing a particular taxonomy vocabulary. However I am not able to understand why this error is triggered.

sonfd avatar
in flag
Are you trying to link to the vocabulary somewhere?
id flag
Yes I have created an entity reference field to reference the vocabulary. This field has been added to the Content type.
sonfd avatar
in flag
I believe the error is because something is trying to link to the entity (taxonomy vocab) referenced in your field, but taxonomy vocabularies (and other config entities?) don't provide a canonical path like regular content entities. I would make sure that you're not trying to "link to the referenced entity" anywhere.
id flag
This does happen if we switch to another vocabulary which adds to the complexity.
sonfd avatar
in flag
It _does_ or _does not_?
id flag
Sorry I meant 'does not'
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.