diff --git a/src/categories/topics.js b/src/categories/topics.js index b4841200fd..918cc4c244 100644 --- a/src/categories/topics.js +++ b/src/categories/topics.js @@ -245,7 +245,7 @@ module.exports = function (Categories) { bodyShort: bodyShort, bodyLong: postData.content, pid: postData.pid, - path: `/post/${postData.pid}`, + path: `/post/${encodeURIComponent(postData.pid)}`, tid: postData.topic.tid, from: exceptUid, });