Это мобильное меню моего сайта:
<div class="mfp-content"><div id="main-menu" class="mobile-sidebar no-scrollbar">
<div class="sidebar-menu no-scrollbar ">
<ul class="nav nav-sidebar nav-vertical nav-uppercase">
<li class="header-search-form search-form html relative has-icon">
<div class="header-search-form-wrapper">
<div class="searchform-wrapper ux-search-box relative form- is-normal"><form role="search" method="get" class="searchform" action="https://intesaweb.com/">
<div class="flex-row relative">
<div class="flex-col flex-grow">
<input type="search" class="search-field mb-0" name="s" value="" placeholder="Cerca…" autocomplete="off">
<input type="hidden" name="post_type" value="product">
</div><!-- .flex-col -->
<div class="flex-col">
<button type="submit" class="ux-search-submit submit-button secondary button icon mb-0">
<i class="icon-search"></i> </button>
</div><!-- .flex-col -->
</div><!-- .flex-row -->
<div class="live-search-results text-left z-top"><div class="autocomplete-suggestions" style="position: absolute; display: none; max-height: 300px; z-index: 9999;"></div></div>
</form>
</div> </div>
</li><li class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-485"><a href="https://intesaweb.com/" class="nav-top-link">HOME</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-297"><a href="https://intesaweb.com/attivita" class="nav-top-link">ATTIVITÀ</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-481"><a href="https://intesaweb.com/shop" class="nav-top-link">CATALOGO PRODOTTI</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-482"><a href="https://intesaweb.com/come-funziona" class="nav-top-link">COME FUNZIONA</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-483"><a href="https://intesaweb.com/contratti" class="nav-top-link">CONTRATTI</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-484"><a href="https://intesaweb.com/assistenza" class="nav-top-link">ASSISTENZA</a></li>
etc...
Это код кнопки в мобильном меню, которая при нажатии обновляет страницу:
<a id="aggiorna" class="button primary" href="javascript:window.location.reload();">AGGIORNA</a>
Как сохранить мобильное меню открытым после обновления страницы с помощью кнопки «Aggiorna»?