Skip to content

Conversation

sathvik-palley
Copy link

Summary

This PR introduces a new toggle button in the Flask Debug Toolbar to dynamically enable or disable the DEBUG_TB_INTERCEPT_REDIRECTS setting.

Changes:

  • Adds backend route: /_debug_toolbar/views/toggle_redirect_intercept to flip the config
  • Injects current config state into toolbar.py → template context
  • Adds a UI toggle button with real-time label (Intercept: ON/OFF) and color state

Motivation:

This improves developer productivity by allowing redirect interception control without restarting the server or modifying config files manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants