diff --git a/public/s/js/f0ckm.js b/public/s/js/f0ckm.js index 612d748..e0195ab 100644 --- a/public/s/js/f0ckm.js +++ b/public/s/js/f0ckm.js @@ -4368,7 +4368,7 @@ window.cancelAnimFrame = (function () { suggestions.style.display = 'none'; highlightIdx = -1; toggleSearch(false); - const target = `/tag/${encodeURIComponent('title:' + s.title)}/`; + const target = `/tag/title:${encodeURIComponent(s.title)}/`; if (typeof loadPageAjax === 'function') { loadPageAjax(target, true); } else { @@ -4549,7 +4549,7 @@ window.cancelAnimFrame = (function () { suggestions.style.display = 'none'; highlightIdx = -1; toggleSearch(false); - const target = `/tag/${encodeURIComponent('title:' + el.dataset.title)}/`; + const target = `/tag/title:${encodeURIComponent(el.dataset.title)}/`; if (typeof loadPageAjax === 'function') { loadPageAjax(target, true); } else { @@ -4580,7 +4580,7 @@ window.cancelAnimFrame = (function () { if (tagItems.length === 0 && titleItems.length > 0) { toggleSearch(false); const q = input.value.trim(); - const target = `/tag/${encodeURIComponent('title:' + q)}/`; + const target = `/tag/title:${encodeURIComponent(q)}/`; if (typeof loadPageAjax === 'function') { loadPageAjax(target, true); } else { diff --git a/src/inc/routeinc/f0cklib.mjs b/src/inc/routeinc/f0cklib.mjs index 59b9652..c43f1cb 100644 --- a/src/inc/routeinc/f0cklib.mjs +++ b/src/inc/routeinc/f0cklib.mjs @@ -305,7 +305,7 @@ export default { // Override link for title searches — pagination must use the /tag/title:... prefix if (isTitleSearch && titleQuery) { - link.main = `/tag/${encodeURIComponent('title:' + titleQuery)}/`; + link.main = `/tag/title:${encodeURIComponent(titleQuery)}/`; link.path = 'p/'; link.suffix = ''; }