fix: encode URI components in API calls and links to ensure proper formatting

This commit is contained in:
Ardeman
2025-03-10 14:49:09 +08:00
parent 169f0166b8
commit 54a8a97c09
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ export const ContentsPage = () => {
7: (value: string) => (
<Button
as="a"
href={`/lg-admin/contents/update/${value}`}
href={`/lg-admin/contents/update/${encodeURIComponent(value)}`}
className="text-md rounded-md"
size="sm"
>