search testing xd

This commit is contained in:
2026-05-25 12:09:35 +02:00
parent f2cebddd4d
commit 7ca88f6416
2 changed files with 24 additions and 6 deletions

View File

@@ -4354,7 +4354,7 @@ window.cancelAnimFrame = (function () {
suggestions.style.display = 'none';
highlightIdx = -1;
toggleSearch(false);
const target = `/search/?tag=title:${encodeURIComponent(s.title)}`;
const target = `/tag/${encodeURIComponent('title:' + s.title)}/`;
if (typeof loadPageAjax === 'function') {
loadPageAjax(target, true);
} else {
@@ -4535,7 +4535,7 @@ window.cancelAnimFrame = (function () {
suggestions.style.display = 'none';
highlightIdx = -1;
toggleSearch(false);
const target = `/search/?tag=title:${encodeURIComponent(el.dataset.title)}`;
const target = `/tag/${encodeURIComponent('title:' + el.dataset.title)}/`;
if (typeof loadPageAjax === 'function') {
loadPageAjax(target, true);
} else {
@@ -4566,7 +4566,7 @@ window.cancelAnimFrame = (function () {
if (tagItems.length === 0 && titleItems.length > 0) {
toggleSearch(false);
const q = input.value.trim();
const target = `/search/?tag=title:${encodeURIComponent(q)}`;
const target = `/tag/${encodeURIComponent('title:' + q)}/`;
if (typeof loadPageAjax === 'function') {
loadPageAjax(target, true);
} else {