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).

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:

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
1
Tracked since
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
3.0.1 Stable 9–11 May 21, 2025