From 807cd5d74470fb478ed5e91cfc01ffe19914fa52 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Mon, 19 Apr 2021 01:43:09 +0200 Subject: [PATCH] Fix Page Filter when URL has a trailing slash --- lib/filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filters.js b/lib/filters.js index 6d8b11a3..1c0e7916 100644 --- a/lib/filters.js +++ b/lib/filters.js @@ -18,7 +18,7 @@ export const urlFilter = (data, { raw }) => { return `${pathname}${search}`; } - return removeTrailingSlash(pathname); + return pathname; } catch { return null; }