• A
    Commit flash changes when using a redirect route. · 558336ee
    Andrew White 提交于
    In ca324a0d the flash middleware was effectively removed by its
    constructor returning the app it was passed and the `commit_flash`
    call was moved to the `ActionController::Metal#dispatch` method.
    This broke any redirect routes that modified the flash because the
    redirect happens before `dispatch` gets called.
    
    To fix it, this commit adds a `commit_flash` call in the `serve`
    method of `ActionDispatch::Routing::Redirect`.
    
    Fixes #27992.
    558336ee
可在Tags中查看这些版本中当前仓库的状态.
CHANGELOG.md 12.0 KB