How to add anchor link through Link field? We have a link field (field_link) on the Basic page content type. We wanted to add the link as an anchor link by putting current-page#section1 into the Link field, but it is not current. 

What can we do to populate a link field such that it take the current URL and add #section1?

This is how the link field is used in the twig template

{% set cta = content.field_link.0 %}
&lt;a href="{{ cta['#url'] }}'&gt;
  &lt;i class="fa fa-car" aria-hidden="true"&gt;&lt;/i&gt;
  &lt;div&gt; {{ content.field_name }} &lt;/div&gt;
  &lt;div&gt; {{ cta['#title'] }}&lt;/div&gt;
&lt;/a&gt;


Current output

&lt;a href="/current/page/path'&gt;
  &lt;i class="fa fa-car" aria-hidden="true"&gt;&lt;/i&gt;
  &lt;div&gt; Professionally facilitate standardized vortals whereas high-payoff e-business. Distinctively productize high. &lt;/div&gt;
  &lt;div&gt; Download &lt;/div&gt;
&lt;/a&gt;


Expected output

&lt;a href="/current/page#section1'&gt;
  &lt;i class="fa fa-car" aria-hidden="true"&gt;&lt;/i&gt;
  &lt;div&gt; Completely brand cross-platform "outside the box" thinking through visionary supply. &lt;/div&gt;
  &lt;div&gt; Download&lt;/div&gt;
&lt;/a&gt;
Drupal will automatically do that if you only enter #section1 into the Link URL.