Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Views base url

5,632 sites Security covered Drupal 8–11 Views ecosystem
View on drupal.org

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:

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Aug 2025
Latest release
11 months ago
Releases (12 mo)
1 ▼ from 5
Maintenance
Slowing

Release Timeline

Releases

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