update: better anchor support with SPA compatibility
parent
be0c43dcaa
commit
4a5e9d07f1
|
@ -65,9 +65,11 @@ export function getFilterQuery(table, filters = {}, params = []) {
|
|||
switch (key) {
|
||||
case 'url':
|
||||
if (table === 'session' || table === 'pageview' || table === 'event') {
|
||||
arr.push(`and (${table}.${key}=$${params.length + 1} or ${table}.${key} like $${params.length + 2})`);
|
||||
arr.push(`and (${table}.${key}=$${params.length + 1} or ${table}.${key} like $${params.length + 2} or (${table}.${key} like $${params.length + 3} and ${table}.${key} not like $${params.length + 4}))`);
|
||||
params.push(decodeURIComponent(value));
|
||||
params.push(`${decodeURIComponent(value)}?%`);
|
||||
params.push(`%${decodeURIComponent(value)}#%`);
|
||||
params.push(`%${decodeURIComponent(value)}#/%`);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue