Sidebar active menu item remains highlighted after navigating via Flowise logo
Describe the bug
When navigating between sidebar sections, the active menu item is highlighted correctly.
However, if I click the Flowise logo to navigate back to the default Chatflows page, the previously selected sidebar item remains highlighted even though the current page is Chatflows.
To Reproduce
- Open the application
- Click a sidebar item (e.g. Credentials, Tools, or another section)
- Observe that the selected item becomes highlighted
- Click the Flowise logo to navigate back to Chatflows
Expected behavior
The Chatflows menu item should become active/highlighted because the current route is Chatflows.
Screenshots
Flow
- Open the Flowise application.
- Click any sidebar menu item (for example: Credentials, Tools, or Assistants).
- Verify that the selected menu item is highlighted.
- Click the Flowise logo in the sidebar/header to navigate back to Chatflows.
- Observe the active menu highlight state.
Use Method
Flowise Cloud
Flowise Version
No response
Operating System
Windows
Browser
Edge
Additional context
This causes the sidebar active state to become inconsistent with the current route.
Video Proof : https://github.com/user-attachments/assets/d58c959f-03a1-4ff4-b0b8-321e35e2c63f
I opened https://github.com/FlowiseAI/Flowise/pull/6547 for this. The sidebar only synchronized its active item when each NavItem mounted, so navigating back through the Flowise logo did not update the selected menu item. The patch tracks location.pathname and updates the active menu item on route changes. Validation: git diff --check and pnpm --dir packages/ui build passed.