From b607a80aeb9fbd747ef6125d14bc1af262fd479b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 16 Feb 2026 08:48:21 -0500 Subject: [PATCH] fix: #13993, encodeURICompoent pid since it can be AP url --- src/controllers/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/helpers.js b/src/controllers/helpers.js index 27366459a9..554967cab4 100644 --- a/src/controllers/helpers.js +++ b/src/controllers/helpers.js @@ -396,7 +396,7 @@ helpers.setCategoryTeaser = function (category) { if (Array.isArray(category.posts) && category.posts.length && category.posts[0]) { const post = category.posts[0]; category.teaser = { - url: `${nconf.get('relative_path')}/post/${post.pid}`, + url: `${nconf.get('relative_path')}/post/${encodeURIComponent(post.pid)}`, timestampISO: post.timestampISO, pid: post.pid, tid: post.tid,