Created
October 19, 2018 16:45
-
-
Save DanLaufer/da776d157d05b473a88babc00fac56f3 to your computer and use it in GitHub Desktop.
Drupal 8 - Get canonical node path in Twig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% set node_path = 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