fix: unable to list uncategorized posts on the archive page (fix #471)

This commit is contained in:
saicaca
2025-05-30 19:42:45 +08:00
parent 4b30ff2b7b
commit dde7835dd7
7 changed files with 17 additions and 130 deletions

View File

@@ -27,7 +27,7 @@ export function getCategoryUrl(category: string): string {
category.trim() === "" ||
category.trim().toLowerCase() === i18n(I18nKey.uncategorized).toLowerCase()
)
return url("/archive/");
return url("/archive/?uncategorized=true");
return url(`/archive/?category=${encodeURIComponent(category.trim())}`);
}