redirectBack

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).

 

 
$ box install redirectBack
5.00 / 2
  • Oct 27 2016 05:41 PM
  • Jan 13 2017 11:22 AM
  • 312
  • 0
  • 160