refactor: remove bookshelf route, consolidate to dashboard

- Update header navigation to link to /dashboard instead of /bookshelf
- Update index page auto-redirect to use /dashboard
- Remove duplicate route, keeping full-featured dashboard with filters
This commit is contained in:
2026-02-15 21:36:25 -05:00
parent b682f09fbc
commit 2df2b2d026
4 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -128,7 +128,7 @@ templ Index(loggedIn bool) {
<script src="/static/theme.js"></script>
<script>
// Auto-redirect to bookshelf if user is logged in
// Auto-redirect to dashboard if user is logged in
document.addEventListener('DOMContentLoaded', function() {
const token = localStorage.getItem('token');
if (token) {
@@ -140,8 +140,8 @@ templ Index(loggedIn bool) {
})
.then(response => {
if (response.ok) {
// Token is valid, redirect to bookshelf
window.location.href = '/bookshelf';
// Token is valid, redirect to dashboard
window.location.href = '/dashboard';
}
})
.catch(error => {