Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Redirect Path

Security covered Maintenance fixes only

Part of the Redirect ecosystem · 26 projects

This module provides a lightweight way to manage URL redirects by storing rules in a single configuration object. It efficiently handles redirects for browser visits while allowing AJAX requests to pass through, ensuring compatibility with interactive elements. The module is ideal for sites with a moderate number of redirect rules and offers advanced matching capabilities like wildcards and query string support.

Lightweight, No database tables and no entity system overhead. Rules are stored in a single config object; hit counters use Drupal State. A single Symfony EventSubscriber fires on every request with minimal overhead.

The module detects whether the incoming request is a direct browser visit or an AJAX call (e.g., Drupal dialog or modal popup) and only redirects browser visits. AJAX requests always pass through unchanged, ensuring modals and dialogs continue to work perfectly.

Rules are stored as a single config object loaded into memory on every request, and matched by a linear scan. This makes the module fast and dependency-free for small rule sets

If you need to manage thousands of URLs (e.g., a large site migration), consider the Redirect contrib module which stores rules in an indexed database table.

Feature This Module Redirect Rabbit Hole Storage Config API (memory) DB table (indexed) DB (entity) Scale 50–500 rules Tens of thousands N/A AJAX / modal passthrough Yes No No Redirects valid Drupal routes Yes No (warns/blocks) No Works on any path Yes Yes No (entity types only) Wildcard prefix matching Yes (/solutions/*) No No Query string matching Yes (/path?page=13) No No Query string passthrough Yes No No Role-based exclusions Yes No No Hit counter per rule Yes No No Path test tool Yes No No Loop / chain detection Yes Partial No CSV import / export Yes No No Per-rule enable / disable Yes No No Multilingual prefix support Yes (auto-detected) Partial Partial External URL destinations No Yes No Redirect 404 tracking No Yes (submodule) No Backend UI configuration Yes Yes Yes No database table required Yes No No

When to use this module

  • You have fewer than 300–500 rules
  • You need AJAX / modal passthrough (e.g., webforms embedded in dialogs)
  • You need to redirect valid Drupal routes that the Redirect module refuses to handle
  • You need wildcard, query string matching, or role-based exclusions
  • You want a lightweight solution with no extra contrib dependency
  • Drupal 9, 10, 11, or 12
  • drupal:user module (for role management in the admin UI)
  • No additional contrib modules required
Drupal 9–11

Ask your assistant about Redirect Path

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

  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2026
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0 Stable 9–11 Sep 18, 2026
1.0.x-dev Dev 9–11 Sep 18, 2026