BoxLang 🚀 A New JVM Dynamic Language Learn More...

redirectBack

v2.0.2 Modules

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

No collaborators yet.
     
5.00 / 3
  • {{ getFullDate("2016-10-27T17:41:37Z") }}
  • {{ getFullDate("2023-05-18T12:12:34Z") }}
  • 8,110
  • 24,513