Version: v0.7.1 - Beta.  We welcome contributors & feedback.

Request.getReferrer

Request.getReferrer() -> string

Description

Get the referring URL of the current request.

If the browser navigated directly to the page (e.g. by bookmark), this will be empty.

$refUrl = Request.getReferrer()

if $refUrl && $refUrl.getParts().host == 'duckduckgo.com' {
    print('Quack!')
}

See Also