mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Fix referrer lookup.
This commit is contained in:
parent
ba71f5cafc
commit
ae772f048c
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
|
||||||
urlPath = '/';
|
urlPath = '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (referrerPath.startsWith('http')) {
|
if (referrerPath?.startsWith('http')) {
|
||||||
const refUrl = new URL(referrer);
|
const refUrl = new URL(referrer);
|
||||||
referrerPath = refUrl.pathname;
|
referrerPath = refUrl.pathname;
|
||||||
referrerQuery = refUrl.search.substring(1);
|
referrerQuery = refUrl.search.substring(1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue