mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
remove www. prefix from hostname during comparison. Closes #3256
This commit is contained in:
parent
b84942b6da
commit
9339383497
5 changed files with 5 additions and 5 deletions
|
|
@ -50,7 +50,7 @@ async function relationalQuery(
|
|||
let excludeDomain = '';
|
||||
|
||||
if (column === 'referrer_domain') {
|
||||
excludeDomain = `and website_event.referrer_domain != website_event.hostname
|
||||
excludeDomain = `and website_event.referrer_domain != regexp_replace(website_event.hostname, '^www.', '')
|
||||
and website_event.referrer_domain != ''`;
|
||||
if (type === 'domain') {
|
||||
column = toPostgresGroupedReferrer(GROUPED_DOMAINS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue