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

Dynamic Path Rewrites

7 sites Security covered Drupal 9–11
View on drupal.org

This module allows you to change entity routing paths without needing to create manual path aliases. It dynamically rewrites URLs on the fly for different entity types and bundles, improving performance by caching these rewrites. This is useful for sites with many entities where creating individual path aliases would be inefficient.

Change entity type router paths without having to create path aliases. Uses inbound/outbound processing to rewrite paths on the fly. Rewrites are cached to keep subsequent requests performant. Varying paths per entity type bundle is supported. For example, /article/{node} for an article and /blog-post/{node} for a blog post. Works with any entity type route!

Usage

  1. Download and install the module. Recommended install method is composer:
    composer require drupal/dynamic_path_aliases
  2. Go to /admin/config/search/path/rewrite to add path rewrites.

Token replacements

Sorry, tokens are NOT supported! Tokens would add too much performance overhead. This approach is intended to avoid the creation of many path alias entities while still allowing paths to be easily changed. For example, on larger sites with many thousands of users or content. If tokens are absolutely necessary, use the tried and true https://www.drupal.org/project/pathauto module.

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
Dec 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.1.5 Stable 9–11 Dec 10, 2024