mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-27 11:14:59 +00:00
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:
parent
f846da230c
commit
a7526b449a
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue