public function getRedirectUrl($defaultRedirect = null, $key = null) {
		$redirect = $this->_getRedirectCache($key);
		if (empty($redirect)) {
			if (!empty($defaultRedirect)) {
				if ($defaultRedirect === true) {
					$redirect = $this->_controller->request->here();
				} else {
					$redirect = $defaultRedirect;
				}
			} else {
				$redirect = ['action' => 'index'];
			}
		}

		return $redirect;
	}
public function getRedirectUrl($defaultRedirect = null, $key = null) {
		$redirect = $this->_getRedirectCache($key);
		if (empty($redirect)) {
			if (!empty($defaultRedirect)) {
				if ($defaultRedirect === true) {
					$redirect = $this->_controller->request->here();
				} else {
					$redirect = $defaultRedirect;
				}
			} else {
				$redirect = ['action' => 'index'];
			}
		}

		return $redirect;
	}
public function getRedirectUrl ( $ defaultRedirect = null , $ key = null ) { $ redirect = $ this -> _getRedirectCache ( $ key ) ; if ( empty ( $ redirect ) ) { if ( ! empty ( $ defaultRedirect ) ) { if ( $ defaultRedirect === true ) { $ redirect = $ this -> _controller -> request -> here ( ) ; } else { $ redirect = $ defaultRedirect ; } } else { $ redirect = [ 'action' => 'index' ] ; } } return $ redirect ; }
Get redirect URL

@param string|array|bool $defaultRedirect Default redirect URL.
If True, use current URL. Use if redirect URL is not found in cache.
@param string $key Key for cache
@return mixed Return redirect URL
Get redirect URL