Skip to main content
3 of 3
removed the link that points to a not found domain
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

You can use path('entity.node.canonical', {'node': dd.nid}) in the template file.

The markup in the template file would look like this.

<li><a href="{{path('entity.node.canonical', {'node': dd.nid})}}">{{ 'About Us'|t }}</a></li>

I haven't tried it, but it should work.

Nitesh Sethia
  • 2.3k
  • 16
  • 23