PHPackages                             codedropcc/magento2-debug-redirect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. codedropcc/magento2-debug-redirect

ActiveMagento2-module[Logging &amp; Monitoring](/categories/logging)

codedropcc/magento2-debug-redirect
==================================

Magento 2 module for debugging redirects with admin configuration

1.0.2(6mo ago)05MITPHPPHP ~7.4.0|~8.0.0|~8.1.0|~8.2.0

Since Nov 11Pushed 6mo agoCompare

[ Source](https://github.com/codedropcc/magento2-debug-redirect)[ Packagist](https://packagist.org/packages/codedropcc/magento2-debug-redirect)[ RSS](/packages/codedropcc-magento2-debug-redirect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

CodeDrop Magento 2 Redirect Debug
=================================

[](#codedrop-magento-2-redirect-debug)

A Magento 2 module for debugging redirects with comprehensive logging and admin configuration.

Features
--------

[](#features)

- Log all redirects (301, 302, 303, 307, 308) to separate log file
- Admin configuration to enable/disable debugging
- Backtrace logging to identify where redirects originate
- Request data logging
- Exclude admin area from logging
- Customizable backtrace depth

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

```
composer require codedropcc/magento2-debug-redirect
php bin/magento module:enable CodeDrop_DebugRedirect
php bin/magento setup:upgrade
php bin/magento cache:clean
```

Manual Installation Download the module

Extract to `app/code/CodeDrop/DebugRedirect`

Run:

```
php bin/magento module:enable CodeDrop_DebugRedirect
php bin/magento setup:upgrade
php bin/magento cache:clean
```

Configuration
-------------

[](#configuration)

1. Go to `Stores → Configuration → Advanced → Debug Settings → Redirect Debug`
2. Enable the module and configure settings:

    - Enable Redirect Debugging: Turn on/off logging
    - Log Backtrace: Include call stack in logs
    - Backtrace Limit: Number of stack frames to log
    - Log Request Data: Include request parameters
    - Exclude Admin Area: Skip admin redirects

Logs
----

[](#logs)

Logs are saved to: var/log/debug\_redirect.log

View logs:

```
tail -f var/log/debug_redirect.log
```

### Example Log Entry

[](#example-log-entry)

```
[2023-12-01 10:30:00] debug.redirect.INFO: REDIRECT DETECTED
{
    "timestamp": "2023-12-01 10:30:00",
    "status_code": "302 (via redirect method)",
    "current_url": "/old-category-url",
    "redirect_url": "/new-category-url",
    "module": "catalog",
    "controller": "category",
    "action": "view",
    "full_action": "catalog_category_view",
    "backtrace": [
        {
            "file": "app/code/Magento/Catalog/Controller/Category/View.php",
            "line": 120,
            "function": "execute",
            "class": "Magento\\Catalog\\Controller\\Category\\View"
        }
    ]
}

```

Support
-------

[](#support)

For issues and feature requests, please create an issue on GitHub.

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance68

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

186d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76c93f7eff0cfcd9e8e4059e80886b2aecd6ae7f46dc77277c8eda56dc833a90?d=identicon)[codedrop](/maintainers/codedrop)

---

Top Contributors

[![Dunkon](https://avatars.githubusercontent.com/u/9192628?v=4)](https://github.com/Dunkon "Dunkon (5 commits)")

---

Tags

loggingdebugdevelopmentredirectmagento2

### Embed Badge

![Health badge](/badges/codedropcc-magento2-debug-redirect/health.svg)

```
[![Health](https://phpackages.com/badges/codedropcc-magento2-debug-redirect/health.svg)](https://phpackages.com/packages/codedropcc-magento2-debug-redirect)
```

###  Alternatives

[friends-of-behat/mink-debug-extension

Debug extension for Behat

2075.3M286](/packages/friends-of-behat-mink-debug-extension)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[pana1990/php-web-profiler

Web profiler in the browser for php application

131.3k](/packages/pana1990-php-web-profiler)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
