Commit fcd0184a authored by Leon Kessler's avatar Leon Kessler Committed by Leon Kessler
Browse files

Issue #2985999 by Eric MORAND, Leon Kessler: The "node" entity cannot have a...

Issue #2985999 by Eric MORAND, Leon Kessler: The "node" entity cannot have a URI as it does not have an ID
parent a4820f05
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -197,7 +197,10 @@ class Link extends FieldGroupFormatterBase implements ContainerFactoryPluginInte

    switch ($this->getSetting('target')) {
      case 'entity':
        /** @var EntityInterface $entity */
        if (!$entity->isNew()) {
          $url = $entity->toUrl();
        }
        break;

      case 'custom_uri':