search testing xd
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user