fix(website): clear filter lands at /#library-index on category pages

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-05-03 09:03:25 +08:00
parent 70a8255289
commit b82a254a09
+1 -1
View File
@@ -342,7 +342,7 @@ tags.forEach(function (tag) {
if (filterClear) {
filterClear.addEventListener("click", function () {
if (!isIndexPage()) {
window.location.href = "/";
window.location.href = "/#library-index";
return;
}
activeFilter = null;