Skip to content

Commit c6db424

Browse files
authored
fix: update link path in search-suggestion-card (#1102)
1 parent 17a9ecd commit c6db424

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/components/SearchSuggestionCard.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ defineProps<{
1414
<template>
1515
<BaseCard :isExactMatch="isExactMatch">
1616
<NuxtLink
17-
:to="type === 'user' ? `/~${name}` : `/@${name}`"
17+
:to="
18+
type === 'user'
19+
? { name: '~username', params: { username: name } }
20+
: { name: 'org', params: { org: name } }
21+
"
1822
:data-suggestion-index="index"
1923
class="flex items-center gap-4 focus-visible:outline-none after:content-[''] after:absolute after:inset-0"
2024
>

0 commit comments

Comments
 (0)