fix(ui): include /home_admin and other admin routes in inventory module detection

This commit is contained in:
2026-05-08 15:18:34 +02:00
parent c7cfb0e411
commit d6ac8a9e16
+5 -2
View File
@@ -406,7 +406,7 @@ def _is_inventory_module_path(path):
if not path: if not path:
return False return False
if path == '/' or path == '/home': if path == '/' or path.startswith('/home'):
return True return True
inventory_prefixes = ( inventory_prefixes = (
@@ -416,7 +416,10 @@ def _is_inventory_module_path(path):
'/manage_filters', '/manage_filters',
'/manage_locations', '/manage_locations',
'/admin_borrowings', '/admin_borrowings',
'/admin_damaged_items' '/admin_damaged_items',
'/admin/borrowings',
'/admin/damaged_items',
'/terminplan',
) )
return path.startswith(inventory_prefixes) return path.startswith(inventory_prefixes)