added support for the "redirect after POST" pattern