fix(ui): ensure /home route correctly activates the inventory theme and navbar

This commit is contained in:
2026-05-08 14:54:55 +02:00
parent 6c73f79866
commit c7cfb0e411
2 changed files with 3 additions and 4 deletions
-2
View File
@@ -434,8 +434,6 @@ def _enforce_module_access():
def _get_current_module(path): def _get_current_module(path):
"""Resolve the active UI module for navbar separation.""" """Resolve the active UI module for navbar separation."""
# Check if referer indicates we came from library
referrer = request.referrer or ''
if cfg.LIBRARY_MODULE_ENABLED and _is_library_module_path(path): if cfg.LIBRARY_MODULE_ENABLED and _is_library_module_path(path):
session['last_module'] = 'library' session['last_module'] = 'library'
+3 -2
View File
@@ -11,7 +11,7 @@
services: services:
# Management Container for multi-tenant scripts # Management Container for multi-tenant scripts
tenant-manager: tenant-manager:
image: docker:cli image: python:3.12-alpine
container_name: tenant-manager container_name: tenant-manager
restart: "no" restart: "no"
profiles: profiles:
@@ -19,7 +19,8 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- .:/workspace - .:/workspace
entrypoint: ["sh", "-c", "cd /workspace && ./manage-tenant.sh \"$$@\"", "--"] entrypoint: >
sh -c "apk add --no-cache bash docker-cli && cd /workspace && ./manage-tenant.sh \"$$@\"" --
redis: redis:
image: redis:7-alpine image: redis:7-alpine