Fix broken repository links in dashboard and index

swadhinbiswas committed 10 months ago
7a7e1db
1 parent 1110042
commit 7a7e1db
2 files changed
+3 -3
▼src/pages/dashboard.astro
+2-2
62
62
{
63
63
repos.map((repo) => (
64
64
<a
65
- href={`/${user.username}/${repo.slug}`}
65
+ href={`/${repo.slug}`}
66
66
class="flex items-center gap-2 px-2 py-1.5 text-sm text-muted-foreground hover:text-foreground hover:bg-accent rounded-md transition-colors"
67
67
>
68
68
<Book class="h-4 w-4" />
134
134
<div class="space-y-1">
135
135
<CardTitle class="text-base">
136
136
<a
137
- href={`/${user.username}/${repo.slug}`}
137
+ href={`/${repo.slug}`}
138
138
class="hover:underline flex items-center gap-2"
139
139
>
140
140
<Book class="h-4 w-4 text-muted-foreground" />
141
141
▼src/pages/index.astro
+1-1
116
116
<div class="flex items-center gap-2">
117
117
<BookOpen class="h-5 w-5 text-muted-foreground" />
118
118
<a
119
- href={`/${repo.owner.username}/${repo.slug}`}
119
+ href={`/${repo.slug}`}
120
120
class="font-semibold hover:underline"
121
121
>
122
122
{repo.owner.username}/{repo.name}
123
123