title: MudBlazor - close sidebar after Navigation
body: <p><strong>Problem</strong>: the sidebar doesn't close after I navigate to another page.</p>
  <p><strong>What I've tried</strong>: adding a <code>OnClick=&quot;&quot;</code> event to the <code>&lt;MudNavLink&gt;</code> to close the sidebar, however if I do that it will override the <code>href</code> (meaning it closes the sidebar, but does not navigate to another page).</p>
  <pre><code>        &lt;MudLayout&gt;
              &lt;MudAppBar Elevation=&quot;3&quot;&gt;
                  &lt;MudIconButton Style=&quot; margin: 0; position: absolute; top: 50%; -ms-transform: translateY(-50%); transform: translateY(-50%); &quot; Icon=&quot;@Icons.Material.Filled.Menu&quot; Color=&quot;Color.Inherit&quot; Edge=&quot;Edge.Start&quot; OnClick=&quot;ToggleSidebar&quot; /&gt;
               &lt;/MudAppBar&gt;
              &lt;MudDrawer Open=&quot;_sidebarOpen&quot; Elevation=&quot;1&quot;&gt;
                  &lt;MudNavMenu&gt;
                      &lt;MudNavLink Href=&quot;/index&quot; Match=&quot;NavLinkMatch.All&quot; Icon=&quot;@Icons.Filled.Home&quot;&gt;Home&lt;/MudNavLink&gt;
                      ...
                  &lt;/MudNavMenu&gt;
              &lt;/MudDrawer&gt;
          &lt;/MudLayout&gt;
  </code></pre>