We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1229e16 commit 95a07e9Copy full SHA for 95a07e9
src/utils/url-utils.ts
@@ -15,7 +15,7 @@ export function getPostUrlBySlug(slug: string): string {
15
16
export function getCategoryUrl(category: string): string {
17
if (category === '未分类') return url('/archive/category/uncategorized/')
18
- return url(`/archive/category/${category}/`)
+ return url(`/archive/category/${encodeURIComponent(category)}/`);
19
}
20
21
export function getDir(path: string): string {
0 commit comments