Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drastially change how beforeRedirect callbacks work.
Instead of relying on removed event system features, the beforeRedirect callback now works differently. Each callback will receive the original URL that the redirect was for and the response object. Any listener can directly set the location header, statusCode or any other headers they desire. The exit parameter cannot be altered and will most likely be removed in the future as exiting from the controller makes a variety of testing situations harder. This change also simplifies the testing & behavior of the beforeRedirect callback. If a beforeRedirect callback is stopped no redirection occurs as in the past.
- Loading branch information
Showing
6 changed files
with
144 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.