Skip to content
  • Grey Baker's avatar
    f49d20ef
    Stash original path in `ShowExceptions` middleware · f49d20ef
    Grey Baker authored
    `ActionDispatch::ShowExceptions` overwrites `PATH_INFO` with the status code
    for the exception defined in `ExceptionWrapper`, so the path the user was
    visiting when an exception occurred was not previously available to any custom
    exceptions_app.
    
    The original `PATH_INFO` is now stashed in
    `env["action_dispatch.original_path"]`.
    f49d20ef
    Stash original path in `ShowExceptions` middleware
    Grey Baker authored
    `ActionDispatch::ShowExceptions` overwrites `PATH_INFO` with the status code
    for the exception defined in `ExceptionWrapper`, so the path the user was
    visiting when an exception occurred was not previously available to any custom
    exceptions_app.
    
    The original `PATH_INFO` is now stashed in
    `env["action_dispatch.original_path"]`.
Loading