{foreach $menuitems as $bloc}
    {if count($bloc->childItems)}
         {if $bloc->label}<li class="nav-header">{$bloc->label|eschtml}</li>{/if}
         {foreach $bloc->childItems as $item}
                <li {if $item->id == $selectedMenuItem} class="active"{/if}>
                    {if $item->id == $selectedMenuItem && $item->type == 'url'}
                        <a href="" onclick="return false;"{if $item->icon}
                        style="background-image:url({$item->icon});"{/if}>{$item->label|eschtml}</a>
                    {elseif $item->type == 'url'}
                        <a href="{$item->content|eschtml}"{if $item->icon}
                        style="background-image:url({$item->icon});"{/if}>{$item->label|eschtml}</a>
                    {else}
                        {$item->content}
                    {/if}
                </li>
         {/foreach}
    {/if}
{/foreach}

{foreach $menuitems as $bloc}
    {if count($bloc->childItems)}
         {if $bloc->label}<li class="nav-header">{$bloc->label|eschtml}</li>{/if}
         {foreach $bloc->childItems as $item}
                <li {if $item->id == $selectedMenuItem} class="active"{/if}>
                    {if $item->type == 'url'}
                        <a href="{$item->content|eschtml}"{if $item->icon}
                        style="background-image:url({$item->icon});"{/if}>{$item->label|eschtml}</a>
                    {else}
                        {$item->content}
                    {/if}
                </li>
         {/foreach}
    {/if}
{/foreach}

Fix issue in the admin menu: impossible to back to higher page
Fix issue in the admin menu: impossible to back to higher page

Clicking on the link corresponding to a parent page of a section
is not possible.

For example, when we click on a link on "Lizmap configuration",
then we go to modify the config or a repository, the link
"Lizmap configuration" becomes inactive and has the bad URL.

We cannot back to the lizmap configuration with the menu.
