I have a left side vertical nav menu with a couple sections that collapse submenus. How can I make it so that when the user navigates to a page from that submenu (#submenu1) that the menu is expanded on the next page?
<ul class="nav flex-column flex-nowrap overflow-hidden">
<li class="nav-item">
<a class="nav-link collapsed" href="#submenu1" data-toggle="collapse" data-target="#submenu1">
<i class="fa-regular fa-user fa-fw"></i><span class="ml-1">Your Account</span>
</a>
<div class="collapse" id="submenu1" aria-expanded="false">
<ul class="flex-column pl-2 nav">