fix(js): drop legacy category/group URL param aliases for filter

Only the canonical 'filter' query param is supported. The 'category'
and 'group' aliases were never documented and silently accepted wrong
spellings; removing them prevents hidden coupling to old URL shapes.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-03-24 13:19:42 +08:00
parent d7a7e68475
commit 57a5b432f6

View File

@@ -407,7 +407,7 @@ if (backToTop) {
(function () {
const params = new URLSearchParams(location.search);
const q = params.get("q");
const filter = params.get("filter") || params.get("category") || params.get("group");
const filter = params.get("filter");
const sort = params.get("sort");
const order = params.get("order");
if (q && searchInput) searchInput.value = q;