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). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Views URL Path Arguments

2,780 sites Security covered Drupal 10–11 Views ecosystem
View on drupal.org

This module improves SEO by allowing Drupal views to use URL path aliases instead of node IDs for contextual filters. This means arguments in URLs can be human-readable paths, making them more search engine-friendly.

SUMMARY

Simple module to convert a view contextual filter entity id into its url path. The extended example uses nodes, but it should work with any type of entity.

Extended use case: A website has a view that uses node reference or entity reference to filter the results set. For example, a regional location node is a node reference on a bunch of news stories. The view is setup to filter and show only news stories in the Chicago region and not any news stories from any other regions. Rather than using nid for the contextual filter (which isn't SEO friendly) these plugins allow the ability to use SEO friendly url path / path alias.

example.com/news-stories/chicago
                         ^^path alias argument
           chicago converts to a nid for normal views contextual filter processing

REQUIREMENTS

INSTALLATION

CONFIGURATION

There are two plugins available in this module. The default argument plugin should be used with blocks or things that don't naturally have arguments available to them. The validator plugin should be used to convert the nid for views that naturally have arguments available to them, such as pages. They can be used together if a view is rendered in both a block and a page. Or seperately if the site's view is rendered only as a page or only as a block.

  • Configure contextual filters in Administration » Structure » Views » view: Add a contextual filter i.e. Content: Nid
    • Argument not available to views? Use: When the filter value is not available » Provide default value » URL path alias from URL
    • Argument available to views? Use: When the filter value is available or a default is provided » Specify validation criteria » Validate URL path alias

FAQ

Q: Why would I use this module?

A: For SEO purposes you want to use the url path a.ka. path alias as an argument to a views contextual filter.

CONTACT

Current maintainer: Lucas Hedding (heddn)

Depends on

Dependencies of the latest stable release

  • path_alias Drupal core
  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jul 2025
Latest release
8 months ago
Releases (12 mo)
1 ▼ from 3
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
8.x-1.7 Stable 10–11 Dec 1, 2025
8.x-1.6 Stable 10–11 Jul 18, 2025
8.x-1.5 Stable 10–11 Jul 10, 2025
8.x-1.4 Stable 10–11 Jul 9, 2025