From d0c4128858369c88fe14aa0039ab1aefb231e901 Mon Sep 17 00:00:00 2001 From: ThrRip Date: Tue, 17 Dec 2024 11:15:40 +0800 Subject: [PATCH] home: Use `referer` instead of `referrer` in HTTP headers --- packages/home/app/middleware/trackPageview.global.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/home/app/middleware/trackPageview.global.ts b/packages/home/app/middleware/trackPageview.global.ts index 7900b51..4229ed2 100644 --- a/packages/home/app/middleware/trackPageview.global.ts +++ b/packages/home/app/middleware/trackPageview.global.ts @@ -35,7 +35,7 @@ export default defineNuxtRouteMiddleware(() => { // url u: useRequestURL(), // referrer - r: useRequestHeader('referrer') + r: useRequestHeader('referer') } }) })