Commit f54934a
feat: render config detail inline for alias URLs without redirect
When a browser visits an alias URL like /fullstackjam, render the
config detail page directly instead of redirecting to /username/slug.
This keeps the short URL in the browser address bar.
- Extract ConfigDetail into shared component
- Pass alias resolution via event.locals from hooks
- [username] route conditionally renders config detail or profile
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 370344e commit f54934a
6 files changed
Lines changed: 1512 additions & 1428 deletions
File tree
- src
- lib/components
- routes/[username]
- [slug]
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
0 commit comments