FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

redirectBack

v1.2.2 Public

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

Dependencies (0)


Dev Dependencies (0)


 

$ box install redirectBack

No collaborators yet.
   
5.00 / 2
  • {{ getFullDate("May 28 2020 10:05 AM GMT") }}
  • {{ getFullDate("May 28 2020 10:05 AM GMT") }}
  • 2,526
  • 0
  • 2,954