Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

This module adds a token to Views that represents the site's base URL. This allows you to easily create absolute links within your Views without needing to write PHP code, ensuring better performance and cleaner output.

This module provides a site base URL token in Views. The main purpose of this module is to create a link with absolute path through "Global:Custom text" option.

Why use this module:

You can also create custom links though Drupal l() function, in this case you have to use Views PHP module. The code is stored in database, hence it will not be cached. PHP execution through eval() is slow. This module eliminates this problem.

Usage:

  • Select field formatter in view, and add "Global: Base url"
  • Select "Exclude from display" option.
  • Create custom link by adding a "Global:Custom text"
  • Create link like this: <a href="{{ base_url }}/home">My home page</a>

Other features:

  • Create custom internal absolute link in Views
  • Respect url aliases - link will be rendered as alias (if alias exists)
  • Create image links. Just use image field replacement pattern (say {{ field_image }}) in link text
  • Respect current language of the site - links will be generated based on current of the site

Dependencies:

Activity

Total releases
6
First release
Aug 2025
Latest release
10 months ago
Releases (12 mo)
6 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
2.1.0 Stable Sep 9, 2025
3.0.0-alpha1 Pre-release Aug 10, 2025
2.1.0-rc1 Pre-release Aug 10, 2025
3.x-dev Dev Aug 8, 2025
2.1.0-beta2 Pre-release Aug 8, 2025
2.1.x-dev Dev Aug 8, 2025