Caches the last ColdBox request in the flash scope to give easy redirects back
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
helpers
interceptors
.all-contributorsrc
LICENSE
ModuleConfig.cfc
README.md
box.json

README.md

redirectBack

All Contributors

Installation

box install redirectBack

Usage

// handlers/Main.cfc
component {
	function plainRedirect( event, rc, prc ) {
		redirectBack();
	}

	function redirectWithAdditionalParameters( event, rc, prc ) {
		redirectBack( /* takes anything setNextEvent takes */ );
	}
}

Uses the ColdBox's flash storage to store the last request. If there is no last request, redirects to "" (empty string).

Contributors

Thanks goes to these wonderful people (emoji key):


Eric Peterson

💻 📖

This project follows the all-contributors specification. Contributions of any kind welcome!