How to generate absolute URL for breadcrumbs? I am use Easy Breadcrumb module for a D8 site. I have everything I need with this module as it alters the existing Breadcrumb block, but it outputs relative URLs. 

How can I change the relative URLs to absolute?

Current issue (Breadcrumb Output):

&lt;ol&gt;
&lt;li&gt;
    &lt;a href="/level-one"&gt;level One&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
    &lt;a href="/level-one/level-two"&gt;level two&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
    &lt;a href="/level-one/level-two/level-three"&gt;level three&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Current Level
&lt;/li&gt;
&lt;/ol&gt;


Expected output:

&lt;ol&gt;
&lt;li&gt;
    &lt;a href="https://www.domain.com/level-one"&gt;level One&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
    &lt;a href="https://www.domain.com/level-one/level-two"&gt;level two&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
    &lt;a href="https://www.domain.com/level-one/level-two/level-three"&gt;level three&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
Current Level
&lt;/li&gt;
&lt;/ol&gt;
You can alter the breadcrumbs of other bread crumb builders (core or contrib) in a hook_system_breadcrumb_alter():

/**
 * Implements hook_system_breadcrumb_alter().
 */
function mymodule_system_breadcrumb_alter(\Drupal\Core\Breadcrumb\Breadcrumb &amp;$breadcrumb, \Drupal\Core\Routing\RouteMatchInterface $route_match, array $context) {
  $links = $breadcrumb-&gt;getLinks();
  foreach ($links as $link) {
    $url = $link-&gt;getUrl();
    $url-&gt;setAbsolute();
  }
}