WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node typescript hono htmx atproto

fix: category link in breadcrumb on topic should lead to index (#62)

authored by

Malpercio and committed by
GitHub
3a1d4db9 5d357ebb

+2 -2
+1 -1
apps/web/src/routes/__tests__/topics.test.tsx
··· 282 282 expect(html).toContain("Main Category"); 283 283 expect(html).toContain("General Discussion"); 284 284 expect(html).toContain("This is the original post"); 285 - expect(html).toContain('href="/categories/7"'); // category links forward to category view 285 + expect(html).toContain('href="/"'); // category links forward to index, we don't have a category view 286 286 expect(html).toContain('href="/boards/42"'); // board links to board view 287 287 }); 288 288
+1 -1
apps/web/src/routes/topics.tsx
··· 411 411 <ol> 412 412 <li><a href="/">Home</a></li> 413 413 {categoryName && categoryId && ( 414 - <li><a href={`/categories/${categoryId}`}>{categoryName}</a></li> 414 + <li><a href="/">{categoryName}</a></li> 415 415 )} 416 416 {boardName && ( 417 417 <li><a href={`/boards/${topicData.post.boardId}`}>{boardName}</a></li>