Merge pull request #630 from Wonderfall/fix-page-filter

Fix Pages filter when URL has a trailing slash
This commit is contained in:
Mike Cao 2021-04-24 21:19:14 -07:00 committed by GitHub
commit fdbb5fcce7
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 removeTrailingSlash(pathname);
return pathname;
} catch {
return null;
}