This commit is contained in:
2025-08-04 16:17:41 +08:00
parent 7189baf7c4
commit a5364ae7ac
2 changed files with 2 additions and 2 deletions

View File

@@ -361,7 +361,7 @@ class Network {
page: number,
): Promise<PageResponse<Resource>> {
return this._callApi(() =>
axios.get(`${this.apiBaseUrl}/resource/tag/${tag}`, {
axios.get(`${this.apiBaseUrl}/resource/tag/${encodeURIComponent(tag)}`, {
params: {
page,
},

View File

@@ -348,7 +348,7 @@ function Tags({ tags }: { tags: Tag[] }) {
"m-1 cursor-pointer badge-soft badge-primary shadow-xs"
}
onClick={() => {
navigate(`/tag/${tag.name}`);
navigate(`/tag/${encodeURIComponent(tag.name)}`);
}}
>
{tag.name}