Fix Page Filter when URL has a trailing slash

This commit is contained in:
Wonderfall 2021-04-19 01:43:09 +02:00 committed by GitHub
parent c5d23867f5
commit 807cd5d744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ export const urlFilter = (data, { raw }) => {
return `${pathname}${search}`; return `${pathname}${search}`;
} }
return removeTrailingSlash(pathname); return pathname;
} catch { } catch {
return null; return null;
} }