This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-13 11:25:14 +01:00
parent 034be63ac0
commit 7f2c0f6cf0
64 changed files with 5820 additions and 1160 deletions

View File

@@ -1,3 +1,5 @@
import { stripTrailingSlash } from '@mixan/common';
import referrers from '../referrers';
function getHostname(url: string | undefined) {
@@ -18,7 +20,7 @@ export function parseReferrer(url: string | undefined) {
return {
name: match?.name ?? '',
type: match?.type ?? 'unknown',
url: url ?? '',
url: stripTrailingSlash(url ?? ''),
};
}