fix(routes): serve pages with clean URLs (no .html extension)

Add server-side routes for /profile, /admin, and /shared that
serve their respective HTML pages directly (same pattern already
used for /login). Updated all frontend references to use clean
URLs instead of .html extensions.

Fixes #99
This commit is contained in:
Dionisio
2026-02-13 22:44:20 +01:00
parent 6f3baabbb2
commit 4560a8042c
7 changed files with 34 additions and 16 deletions
+3 -3
View File
@@ -25,7 +25,7 @@
<i class="fas fa-folder"></i>
<span data-i18n="nav.files">Files</span>
</a>
<a href="/shared.html" class="nav-item active">
<a href="/shared" class="nav-item active">
<i class="fas fa-share-alt"></i>
<span data-i18n="nav.shared">Shared</span>
</a>
@@ -250,7 +250,7 @@
(function() {
const token = localStorage.getItem('oxicloud_token');
if (!token) {
window.location.href = '/auth/login.html';
window.location.href = '/login';
return;
}
// Set user avatar initials
@@ -281,7 +281,7 @@
logoutBtn.addEventListener('click', () => {
localStorage.removeItem('oxicloud_token');
localStorage.removeItem('oxicloud_user');
window.location.href = '/auth/login.html';
window.location.href = '/login';
});
}
})();