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 field to Views that displays the URL of the current page. This field can be used in other Views fields to dynamically include the current page's path, for example, as part of a link or text.

Important

We'd appreciate your help testing the D8 version of this module so that we can progress this to a stable implementation - of particular value is testing on multilingual sites.

About

Provides a Views field that displays the URL of the current page being viewed.

Usage

Create/edit your view and add a new field. In the "Add fields" window, choose "Global: Current Path". Configure the field options and apply it to your display.

There are many use-cases for this functionality. The most common is to use the "Rewrite results" section in other fields where you can use this field token (i.e. [current_path]) in the text or adding it to the "Output this field as a link" input box.

Notes

The Drupal 7 version of this module will only receive bug fixes effective 20th April 2018. Development of new features (where appropriate) will take place against the D8 version.

Credits

Original concept taken from:
http://drupal.stackexchange.com/questions/49377/get-the-current-path-in-...

Code provided by:

Activity

Total releases
1
First release
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
3.0.1 Stable May 21, 2025