mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Updated packages. Allow url in query strings.
This commit is contained in:
parent
353907e71d
commit
a3e920d944
4 changed files with 305 additions and 510 deletions
|
|
@ -34,7 +34,6 @@ export default prisma;
|
|||
|
||||
export async function runQuery(query) {
|
||||
return query.catch(e => {
|
||||
console.error(e);
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,11 @@ export const urlFilter = (data, { raw }) => {
|
|||
|
||||
const cleanUrl = url => {
|
||||
try {
|
||||
const { pathname, searchParams } = new URL(url);
|
||||
const { pathname, search, searchParams } = new URL(url);
|
||||
|
||||
if (search.startsWith('?/')) {
|
||||
return `${pathname}${search}`;
|
||||
}
|
||||
|
||||
const path = removeTrailingSlash(pathname);
|
||||
const ref = searchParams.get('ref');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue