diff --git a/apps/juxtaposition-ui/src/services/juxt-web/routes/console/show.tsx b/apps/juxtaposition-ui/src/services/juxt-web/routes/console/show.tsx index 02d85a54..30fbd732 100644 --- a/apps/juxtaposition-ui/src/services/juxt-web/routes/console/show.tsx +++ b/apps/juxtaposition-ui/src/services/juxt-web/routes/console/show.tsx @@ -28,7 +28,7 @@ showRouter.get('/', async function (req, res) { } if (query.topic_tag) { - res.redirect(`/topics?topic_tag=${query.topic_tag}`); + res.redirect(`/topics?${new URLSearchParams({ topic_tag: query.topic_tag })}`); } else if (query.pid) { res.redirect(`/users/${query.pid}`); } else { diff --git a/apps/juxtaposition-ui/src/services/juxt-web/routes/console/topics.tsx b/apps/juxtaposition-ui/src/services/juxt-web/routes/console/topics.tsx index a1ceb79f..46b6c799 100644 --- a/apps/juxtaposition-ui/src/services/juxt-web/routes/console/topics.tsx +++ b/apps/juxtaposition-ui/src/services/juxt-web/routes/console/topics.tsx @@ -28,7 +28,11 @@ topicsRouter.get('/', async function (req, res) { } const posts = await POST.find({ topic_tag: query.topic_tag }).sort({ created_at: -1 }).limit(query.limit); - const nextLink = `/topics/more?topic_tag=${query.topic_tag}&offset=${posts.length}&pjax=true`; + const nextLink = `/topics/more?${new URLSearchParams({ + topic_tag: query.topic_tag, + offset: `${posts.length}`, + pjax: 'true' + })}`; if (query.pjax) { return res.jsxForDirectory({