mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Always show More button. Update page filter.
This commit is contained in:
parent
15ea2ba913
commit
a56738597d
@ -99,7 +99,7 @@ export default function MetricsTable({
|
||||
)}
|
||||
</div>
|
||||
<div className={styles.footer}>
|
||||
{limit && data.length > limit && (
|
||||
{limit && (
|
||||
<Button icon={<Arrow />} size="xsmall" onClick={() => onExpand(type)}>
|
||||
<div>
|
||||
<FormattedMessage id="button.more" defaultMessage="More" />
|
||||
|
@ -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…
Reference in New Issue
Block a user