refactor: put alltime in query string for term

This commit is contained in:
Barış Soner Uşaklı
2026-01-15 16:47:28 -05:00
parent 469a8ef9b4
commit 639ea42d5a

View File

@@ -40,6 +40,7 @@ helpers.noScriptErrors = async function (req, res, error, httpStatus) {
};
helpers.terms = {
alltime: 'alltime',
daily: 'day',
weekly: 'week',
monthly: 'month',
@@ -101,7 +102,7 @@ helpers.buildFilters = function (url, filter, query) {
helpers.buildTerms = function (url, term, query) {
return [{
name: '[[recent:alltime]]',
url: url + helpers.buildQueryString(query, 'term', ''),
url: url + helpers.buildQueryString(query, 'term', 'alltime'),
selected: term === 'alltime',
term: 'alltime',
}, {