public static function redirect_back($url = '', $method = 'location', $code = 302)
	{
		// do we have a referrer?
		if ($referrer = \Input::referrer())
		{
			// is it within our website? And not equal to the current url?
			if (strpos($referrer, \Uri::base()) === 0 and $referrer != \Uri::current())
			{
				// redirect back to where we came from
				static::redirect($referrer, $method, $code);
			}
		}

		// no referrer or an external link, do a normal redirect
		static::redirect($url, $method, $code);
	}