When I send a node as a simplenews
newsletter I use the node's Email: HTML
display.
One of the fields in this view is a label
of a referenced entity to be rendered as a Link to the referenced entity
.
Drupal renders it as a link with a relative / site-local URL. I want it to be rendered as an absolute / external URL.
For what it's worth:
In the render array the link is stored in
$variable['items']['0']['content']['#url']
which is a Drupal\Core\Url
with a protected external
property of false
I can't see anything in the Url
interface that would change external
to true
or indeed whether this is the thing to do.