diff --git a/templates/room.html b/templates/room.html index 8874367..c893d00 100644 --- a/templates/room.html +++ b/templates/room.html @@ -65,7 +65,7 @@
- @@ -1815,5 +1815,13 @@ document.addEventListener('DOMContentLoaded', function() { } } }); + +function navigateToParent() { + if (!currentPath) return; + const parts = currentPath.split('/'); + parts.pop(); // Remove the last part + const parentPath = parts.join('/'); + navigateTo(parentPath); +} {% endblock %} \ No newline at end of file