Twig Get URL
This module provides a Twig function to easily generate the URL for a node when you only have its ID available. You can then use this function in your Twig templates to display node links.
A simple Twig module to generate the URL of a node using the nid.
Features
Useful for getting a path alias of a node in Twig when you only have the node ID available.
Post-Installation
In Twig, simply use the get_url() function with a node's id as the single parameter.
Supporting this Module
This was created for internal use to extend upon our theme we had but we chose to make it available to the Drupal community. If anyone wants to become a co-maintainer and improve upon it, please let us know.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.1.2 | Stable | 8–11 | Jun 12, 2026 | |
| 1.1.1 | Stable | 8–11 | Jun 12, 2026 | |
| 1.1.0 | Stable | 8–11 | Mar 29, 2026 | |
| 1.0.5 | Stable | 8–11 | Apr 26, 2024 | |
| 1.0.4 | Stable | 8–11 | Apr 23, 2024 | |
| 1.0.3 | Stable | 8–11 | Apr 22, 2024 | |
| 1.0.2 | Stable | 8–10 | Apr 22, 2024 | |
| 1.0.1 | Stable | 8–10 | Apr 19, 2024 | |
| 1.0.0 | Stable | 8–10 | Apr 19, 2024 |