Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Twig Get URL

No security coverage Under active development 18 sites

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.

Drupal 8–11

Ask your assistant about Twig Get URL

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Tracked releases
9
Tracked since
Apr 2024
Latest release
5 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP 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