referrer


referrerstringRead-only

Returns the referrer header from the router request.

The referrer is the address of the web page from which the router request was initiated, typically by clicking on a link.

Get the `referrer` header from the router request
JavaScript
export function myRouter_Router(request) { let referrer = request.referrer; // "http://somesite.com" }
Did this help?