From 731d6e354419a1ca7de8d62b015a2859c58ff986 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 28 Jun 2023 17:20:35 +0100 Subject: [PATCH] fix: make slug searching compatible with the old format --- src/models/page.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/page.model.ts b/src/models/page.model.ts index 71508574..e140b9b4 100644 --- a/src/models/page.model.ts +++ b/src/models/page.model.ts @@ -320,7 +320,7 @@ export async function getPage(input: { path: ["attributes"], array_contains: [{ trait_type: "xlog_slug", - value: "${input.slug}", + value: "${decodeURIComponent(input.slug!)}", }] } },