RPA says:
<
li
class
=
"nav-item"
>
<
a
class
=
"nav-link collapsed"
data-bs-target
=
"#icons-nav"
data-bs-toggle
=
"collapse"
href
=
"#"
>
<
i
class
=
"bi bi-gem"
></
i
><
span
>Accounts</
span
><
i
class
=
"bi bi-chevron-down ms-auto"
></
i
>
</
a
>
<
ul
id
=
"icons-nav"
class
=
"nav-content collapse "
data-bs-parent
=
"#sidebar-nav"
>
<
li
>
<
a
href
=
"icons-bootstrap.html"
>
<
i
class
=
"bi bi-circle"
></
i
><
span
>Invoices</
span
>
</
a
>
</
li
>
<
li
>
<
a
href
=
"icons-remix.html"
>
<
i
class
=
"bi bi-circle"
></
i
><
span
>Invoice Status Values</
span
>
</
a
>
</
li
>
</
ul
>
</
li
>
<
li
class
=
"nav-item"
>
<
a
class
=
"nav-link collapsed"
data-bs-target
=
"#icons-nav"
data-bs-toggle
=
"collapse"
href
=
"#"
>
<
i
class
=
"bi bi-gem"
></
i
><
span
>Globals</
span
><
i
class
=
"bi bi-chevron-down ms-auto"
></
i
>
</
a
>
<
ul
id
=
"icons-nav"
class
=
"nav-content collapse "
data-bs-parent
=
"#sidebar-nav"
>
<
li
>
<
a
href
=
"icons-bootstrap.html"
>
<
i
class
=
"bi bi-circle"
></
i
><
span
>Countries</
span
>
</
a
>
</
li
>
<
li
>
<
a
href
=
"icons-bootstrap.html"
>
<
i
class
=
"bi bi-circle"
></
i
><
span
>States</
span
>
</
a
>
</
li
>
<
li
>
<
a
href
=
"icons-remix.html"
>
<
i
class
=
"bi bi-circle"
></
i
><
span
>Locations</
span
>
</
a
>
</
li
>
</
ul
>
</
li
>
</
ul
>
Please check you are assigning same data-bs-target="#icons-nav" and Id to both the ListItems(Globals and Accounts) so both the navbar items opening on same click.
Please refere below modified code.
HTML
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<aside id="sidebar" class="sidebar">
<ul class="sidebar-nav" id="sidebar-nav">
<li class="nav-item">
<a class="nav-link " href="index.html">
<i class="bi bi-grid"></i>
<span>Dashboard</span>
</a>
</li>
<!-- End Dashboard Nav -->
<li class="nav-item">
<a class="nav-link collapsed" data-bs-target="#components-nav" data-bs-toggle="collapse" href="#">
<i class="bi bi-menu-button-wide"></i><span>Vehicles</span><i class="bi bi-chevron-down ms-auto"></i>
</a>
<ul id="components-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
<li>
<a th:href="@{/}">
<i class="bi bi-circle"></i><span>Vehicle Data</span>
</a>
</li>
<li>
<a href="components-accordion.html">
<i class="bi bi-circle"></i><span>Maintanence</span>
</a>
</li>
<li>
<a href="components-badges.html">
<i class="bi bi-circle"></i><span>Movements</span>
</a>
</li>
<li>
<a href="components-breadcrumbs.html">
<i class="bi bi-circle"></i><span>Hires</span>
</a>
</li>
</ul>
</li>
<!-- End Vehicles Nav -->
<li class="nav-item">
<a class="nav-link collapsed" data-bs-target="#forms-nav" data-bs-toggle="collapse" href="#">
<i class="bi bi-journal-text"></i><span>Parameters</span><i class="bi bi-chevron-down ms-auto"></i>
</a>
<ul id="forms-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
<li>
<a href="forms-elements.html">
<i class="bi bi-circle"></i><span>Vehicle Make</span>
</a>
</li>
<li>
<a href="forms-layouts.html">
<i class="bi bi-circle"></i><span>Vehicle Types</span>
</a>
</li>
<li>
<a href="forms-editors.html">
<i class="bi bi-circle"></i><span>Vehicle Models</span>
</a>
</li>
<li>
<a href="forms-validation.html">
<i class="bi bi-circle"></i><span>Status Values</span>
</a>
</li>
</ul>
</li>
<!-- End Parameters Nav -->
<li class="nav-item">
<a class="nav-link collapsed" data-bs-target="#tables-nav" data-bs-toggle="collapse" href="#">
<i class="bi bi-layout-text-window-reverse"></i><span>People</span><i class="bi bi-chevron-down ms-auto"></i>
</a>
<ul id="tables-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
<li>
<a href="tables-general.html">
<i class="bi bi-circle"></i><span>Employees</span>
</a>
</li>
<li>
<a href="tables-data.html">
<i class="bi bi-circle"></i><span>Clients</span>
</a>
</li>
<li>
<a href="tables-data.html">
<i class="bi bi-circle"></i><span>Suppliers</span>
</a>
</li>
<li>
<a href="tables-data.html">
<i class="bi bi-circle"></i><span>Contacts</span>
</a>
</li>
<li>
<a href="tables-data.html">
<i class="bi bi-circle"></i><span>Users</span>
</a>
</li>
</ul>
</li>
<!-- End Peoples Nav -->
<li class="nav-item">
<a class="nav-link collapsed" data-bs-target="#charts-nav" data-bs-toggle="collapse" href="#">
<i class="bi bi-bar-chart"></i><span>HR Settings</span><i class="bi bi-chevron-down ms-auto"></i>
</a>
<ul id="charts-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
<li>
<a href="charts-chartjs.html">
<i class="bi bi-circle"></i><span>Job Titles</span>
</a>
</li>
<li>
<a href="charts-apexcharts.html">
<i class="bi bi-circle"></i><span>Employee Types</span>
</a>
</li>
</ul>
</li>
<!-- End HR Settings Nav -->
<li class="nav-item">
<a class="nav-link collapsed" data-bs-target="#icons-nav" data-bs-toggle="collapse" href="#">
<i class="bi bi-gem"></i><span>Accounts</span><i class="bi bi-chevron-down ms-auto"></i>
</a>
<ul id="icons-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
<li>
<a href="icons-bootstrap.html">
<i class="bi bi-circle"></i><span>Invoices</span>
</a>
</li>
<li>
<a href="icons-remix.html">
<i class="bi bi-circle"></i><span>Invoice Status Values</span>
</a>
</li>
</ul>
</li>
<!-- End Accounts Nav -->
<li class="nav-item">
<a class="nav-link collapsed" data-bs-target="#icons-nav-Global" data-bs-toggle="collapse" href="#">
<i class="bi bi-gem"></i><span>Globals</span><i class="bi bi-chevron-down ms-auto"></i>
</a>
<ul id="icons-nav-Global" class="nav-content collapse " data-bs-parent="#sidebar-nav">
<li>
<a href="icons-bootstrap.html">
<i class="bi bi-circle"></i><span>Countries</span>
</a>
</li>
<li>
<a href="icons-bootstrap.html">
<i class="bi bi-circle"></i><span>States</span>
</a>
</li>
<li>
<a href="icons-remix.html">
<i class="bi bi-circle"></i><span>Locations</span>
</a>
</li>
</ul>
</li>
<!-- End Globals Nav -->
</ul>
</aside>
<!-- End Sidebar-->
Demo