Global views field that provides site's base url
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Build Status

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.


  • 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 using replacement pattern like this:
<a href="[base_url]/home">My home page</a>

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.


Only module I found closest to this is Views BaseURL, it's in sandbox and that too it was last modified years ago, means its not maintained.