[Bug]: ELUSoC_2026 — Fix stale /dashboard routes in Navbar and missing aria-expanded on mobile toggle
Problem
The Navbar.jsx component contains multiple links that point to the old /dashboard route, which was renamed to /app in the current codebase. Additionally, the mobile hamburger button is missing the aria-expanded attribute, making it inaccessible to screen readers.
Current Behavior
<Link to="/dashboard/profile">navigates to a non-existent route (the Profile page lives at/app/profile).<Link to="/dashboard">in both desktop and mobile menus redirects through a legacy redirect instead of going directly to/app.- The mobile hamburger
<button>hasaria-labelbut is missingaria-expanded, so screen readers cannot announce whether the menu is open. - The sidebar collapse toggle
<button>hastitlebut is missingaria-labelandaria-expanded.
Why This Improvement Is Needed
- Users clicking "Profile" in the top navbar land on an unknown route (no 404 page — falls through to the landing page redirect).
- Broken navigation is a user-facing bug affecting all logged-in users.
- Missing
aria-expandedviolates WCAG 2.1 Success Criterion 4.1.2 (Name, Role, Value) for interactive controls.
Proposed Solution
- Change
to="/dashboard/profile"→to="/app/profile"inNavbar.jsx. - Change all
to="/dashboard"→to="/app"(desktop and mobile) inNavbar.jsx. - Add
aria-expanded={isMobileMenuOpen}andaria-controls="mobile-nav-menu"to the hamburger button. - Add a matching
id="mobile-nav-menu"to the mobile menu container. - Add
aria-labelandaria-expandedto the sidebar collapse toggle inSidebar.jsx.
Expected Outcome
- Clicking "Profile" or "Dashboard" in the navbar navigates directly to the correct routes.
- Screen readers correctly announce the open/closed state of both the mobile menu and sidebar.
Additional Notes
- No visual changes — this is a pure correctness and accessibility fix.
- The
/dashboardredirect inApp.jsxremains in place for legacy bookmarks.
Thank you for raising this issue!
We'll review it as soon as possible. We truly appreciate your contributions! ✨
Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊
Hi, I'd like to work on this issue. I'll fix the stale /dashboard route links in Navbar.jsx (pointing them to /app) and add the missing aria-expanded/aria-controls attributes to the mobile hamburger and sidebar toggle for accessibility. Could you please assign it to me?
/assign /claim
Hi,could you assign this issue to me?