$request->referer()

Returns the referer. Also available with to "rr"

  • return (string)
echo kirby()->request()->referer();

// just because I can never remember how to write it
echo kirby()->request()->referrer();