@inherits LayoutComponentBase @inject NavigationManager Navigation @if (!HideGlobalMenu) { } @Body @code { private bool HideGlobalMenu { get { var currentPath = new Uri(Navigation.Uri).AbsolutePath.Trim('/'); return string.Equals(currentPath, "chrono", StringComparison.OrdinalIgnoreCase) || string.Equals(currentPath, "chrono.html", StringComparison.OrdinalIgnoreCase) || string.Equals(currentPath, "cube", StringComparison.OrdinalIgnoreCase) || string.Equals(currentPath, "cube.html", StringComparison.OrdinalIgnoreCase) || currentPath.StartsWith("authentication/", StringComparison.OrdinalIgnoreCase); } } }