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 authored and GitHub committed 2021-04-24 21:19:14 -07:00
commit fdbb5fcce7
1 file changed
+1 -1
+1 -1
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;
} }