Skip to content

Instantly share code, notes, and snippets.

@MatthieuScarset
Created December 27, 2016 14:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MatthieuScarset/47b57f2e3bd4afee39a81ae5a7c3dc28 to your computer and use it in GitHub Desktop.
Save MatthieuScarset/47b57f2e3bd4afee39a81ae5a7c3dc28 to your computer and use it in GitHub Desktop.
Drupal 8 - Get canonical node URL in TWIG
{{ path('entity.node.canonical', {'node': node.id }) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment