Drupal is a registered trademark of Dries Buytaert
cms 2.1.0 Update released for Drupal core (2.1.0)! menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). moderated_content_bulk_publish 2.0.51 Minor update available for module moderated_content_bulk_publish (2.0.51). moderated_content_bulk_publish 2.0.50 Minor update available for module moderated_content_bulk_publish (2.0.50). editoria11y 2.2.21 Minor update available for module editoria11y (2.2.21). eca 3.1.0 Minor update available for module eca (3.1.0). sophron 3.1.1 Minor update available for module sophron (3.1.1). ai 1.3.1 Minor update available for module ai (1.3.1). seven 2.0.0-beta6 New beta version released for theme seven (2.0.0-beta6). seven 1.0.1-beta1 First beta version released for theme seven (1.0.1-beta1). solo 1.0.32 Minor update available for theme solo (1.0.32). modal_page 5.1.10 Minor update available for module modal_page (5.1.10). sitewide_alert 3.1.1 Minor update available for module sitewide_alert (3.1.1). paragraph_blocks 4.2.2 Minor update available for module paragraph_blocks (4.2.2). config_distro 2.1.0 Minor update available for module config_distro (2.1.0). editoria11y 3.0.0-beta9 New beta version released for module editoria11y (3.0.0-beta9). crop Module crop crossed 1,000 active installs. entity_reference_revisions Module entity_reference_revisions crossed 1,000 active installs. address Module address crossed 1,000 active installs. admin_toolbar Module admin_toolbar crossed 1,000 active installs.

get_url

No security coverage
View on drupal.org

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.

Activity

Total releases
1
First release
Mar 2026
Latest release
20 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.1.0 Stable Mar 29, 2026