Best way to place hard coded link in template in multi lingual drupal 8 My website (drupal 8) was first in one language. Now I switched to multi langual.

Most of the settings i did find (translate content, webforms, strings,...).

But at the moment stuck on the hard coded links I use in the template (theming).

So I'm looking for the best way to let my hard coded links work for more languages.

At this moment this is what i got (and ofcourse this is not working well):

&lt;h4&gt;&lt;a href="/node/100"&gt;{{ 'DIENSTEN ON SITE'|t }}&lt;/a&gt;&lt;/h4&gt;


This link doesn't bring the visitor to the correct link (en/ or fr/ is missing). Translate on the string works already :).

My current settings for detections are visible in the image:


Thanks for reading!

Kristof
For translated links you can use the path function

&lt;a href="{{ path('entity.node.canonical', {'node': '100'}) }}"&gt; {{ 'DIENSTEN ON SITE'|t }}&lt;/a&gt;