Search.../

referrer

Returns the referrer header from the router request.

Description

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

Type:

stringRead Only

Was this helpful?

Get the `referrer` header from the router request

Copy Code
1export function myRouter_Router(request) {
2
3 let referrer = request.referrer;
4 // "http://somesite.com"
5
6}