mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-25 05:33:05 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user