|
|
@ -203,9 +203,9 @@ abstract class LinkHeaderSubscriber implements EventSubscriberInterface { |
|
|
|
$rel = "tag"; |
|
|
|
$rel = "tag"; |
|
|
|
$entity_url = $referencedEntity->url('canonical', ['absolute' => TRUE]); |
|
|
|
$entity_url = $referencedEntity->url('canonical', ['absolute' => TRUE]); |
|
|
|
if ($referencedEntity->hasField('field_external_uri')) { |
|
|
|
if ($referencedEntity->hasField('field_external_uri')) { |
|
|
|
$external_uri = $referencedEntity->get('field_external_uri')->first()->getValue()['uri']; |
|
|
|
$external_uri = $referencedEntity->get('field_external_uri')->getValue(); |
|
|
|
if (!empty($external_uri)) { |
|
|
|
if (!empty($external_uri) && isset($external_uri[0]['uri'])) { |
|
|
|
$entity_url = $external_uri; |
|
|
|
$entity_url = $external_uri[0]['uri']; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
$title = $referencedEntity->label(); |
|
|
|
$title = $referencedEntity->label(); |
|
|
|