fix(dashboard): remove encoding from slug params

The router handles parameter encoding automatically. Explicitly encoding
the slug results in double-encoded characters in the URL.

Signed-off-by: wurongjie <wurongjie@uniontech.com>
This commit is contained in:
wurongjie 2026-04-09 14:59:22 +08:00 committed by wurongjie
parent f846da230c
commit a7526b449a

View file

@ -144,7 +144,7 @@ export function DashboardPage() {
<Link
key={skill.id}
to="/space/$namespace/$slug"
params={{ namespace: skill.namespace, slug: encodeURIComponent(skill.slug) }}
params={{ namespace: skill.namespace, slug: skill.slug }}
className="rounded-lg border border-border/60 px-3 py-3 transition-colors hover:bg-accent/40"
>
<div className="truncate text-sm font-medium">{skill.displayName}</div>