Skip to content

[Bug] Settings secondary nav menu item not showing active state #5224

@thatonePRguy

Description

@thatonePRguy

UNIT3D Version

9.2.0

PHP & Platform

8.4 - Ubuntu 22.04

Laravel verion

12.40.2

Have you done this?

  • I am willing to share my stack trace and logs
  • I can suggest a fix as a Pull Request

Expectation

When viewing any Settings sub-page (E-mail, Password, Passkey, RSS key, API key, Two-factor authentication, Privacy, Notification), the "Settings" parent menu item in the secondary nav should display 'active' styling

Description

The "Settings" parent menu item in the user profile secondary nav only shows as active when the General settings page is selected. When navigating to any other Settings sub-page, the parent "Settings" tab loses its active styling.

resources/views/user/buttons/user.blade.php - Route::is() checks for the Settings parent link using non-existent route names ('user_security', 'user_privacy', 'user_notification') instead of the actual route names used by the sub-menu items.

Stack trace & logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions