Always show More button. Update page filter.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user