src/Utility/Utility.php
public static function getReferer($full = false) {
		$ref = env('HTTP_REFERER');
		$forwarded = env('HTTP_X_FORWARDED_HOST');
		if ($forwarded) {
			$ref = $forwarded;
		}
		if (empty($ref)) {
			return $ref;
		}
		if ($full) {
			$ref = Router::url($ref, $full);
		}
		return $ref;
	}
public static function getReferer($full = false) {
		$ref = env('HTTP_REFERER');
		$forwarded = env('HTTP_X_FORWARDED_HOST');
		if ($forwarded) {
			$ref = $forwarded;
		}
		if (empty($ref)) {
			return $ref;
		}
		if ($full) {
			$ref = Router::url($ref, $full);
		}
		return $ref;
	}
public static function getReferer ( $ full = false ) { $ ref = env ( 'HTTP_REFERER' ) ; $ forwarded = env ( 'HTTP_X_FORWARDED_HOST' ) ; if ( $ forwarded ) { $ ref = $ forwarded ; } if ( empty ( $ ref ) ) { return $ ref ; } if ( $ full ) { $ ref = Router :: url ( $ ref , $ full ) ; } return $ ref ; }
Get the current referrer if available.

@param bool $full (defaults to false and leaves the url untouched)
@return string referer (local or foreign)
Get the current referrer if available .