mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Always show More button. Update page filter.
This commit is contained in:
parent
15ea2ba913
commit
a56738597d
2 changed files with 3 additions and 7 deletions
|
|
@ -13,17 +13,13 @@ export const urlFilter = (data, { raw }) => {
|
|||
|
||||
const cleanUrl = url => {
|
||||
try {
|
||||
const { pathname, search, searchParams } = new URL(url);
|
||||
const { pathname, search } = new URL(url);
|
||||
|
||||
if (search.startsWith('?/')) {
|
||||
return `${pathname}${search}`;
|
||||
}
|
||||
|
||||
const path = removeTrailingSlash(pathname);
|
||||
const ref = searchParams.get('ref');
|
||||
const query = ref ? `?ref=${ref}` : '';
|
||||
|
||||
return `${path}${query}`;
|
||||
return removeTrailingSlash(pathname);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue