code/dispatcher/behavior/resettable.php
protected function _beforeSend(DispatcherContext $context)
    {
        $response = $context->response;
        $request  = $context->request;

        if($response->isSuccess() && $referrer = $request->getReferrer()) {
            $response->setRedirect($referrer);
        }
    }
protected function _beforeSend(DispatcherContext $context)
    {
        $response = $context->response;
        $request  = $context->request;

        if($response->isSuccess() && $referrer = $request->getReferrer()) {
            $response->setRedirect($referrer);
        }
    }
protected function _beforeSend ( DispatcherContext $ context ) { $ response = $ context -> response ; $ request = $ context -> request ; if ( $ response -> isSuccess ( ) && $ referrer = $ request -> getReferrer ( ) ) { $ response -> setRedirect ( $ referrer ) ; } }
Force a GET after POST using the referrer

Redirect if the controller has a returned a 2xx status code.

@param   DispatcherContext $context The active command context
@return  void
Force a GET after POST using the referrer