Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Dynamic Path Rewrites

Security covered Under active development 5 sites

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.

Drupal 9–11

Ask your assistant about Dynamic Path Rewrites

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
3
Tracked since
Jan 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.1.5 Stable 9–11 Dec 10, 2024
1.1.4 Stable 9–10 Jul 20, 2023
1.1.3 Stable 9–10 PHP >=7.4 Jan 31, 2023