diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Shared/MainLayout.razor.cs b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Shared/MainLayout.razor.cs index 5fcbb2c865..6312772d59 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Shared/MainLayout.razor.cs +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Shared/MainLayout.razor.cs @@ -29,12 +29,12 @@ public partial class MainLayout : IDisposable private readonly List templatesNavItems = [ - new BitNavItem { Text = "Overview", Url = "/templates/overview" }, - new BitNavItem { Text = "Samples", Url = "/templates/samples" }, - new BitNavItem { Text = "Getting started", Url = "/templates/getting-started" }, - new BitNavItem { Text = "Project structure", Url = "/templates/project-structure" }, - new BitNavItem { Text = "Create project", Url = "/templates/create-project" }, - new BitNavItem { Text = "Run project", Url = "/templates/run-project" } + new BitNavItem { Text = "Overview", Url = "/templates", AdditionalUrls = [ "/templates/overview", "/boilerplate", "/boilerplate/overview" ] }, + new BitNavItem { Text = "Samples", Url = "/templates/samples", AdditionalUrls = [ "/boilerplate/samples" ] }, + new BitNavItem { Text = "Getting started", Url = "/templates/getting-started", AdditionalUrls = [ "/templates/development-prerequisites", "/boilerplate/getting-started", "/boilerplate/development-prerequisites" ] }, + new BitNavItem { Text = "Project structure", Url = "/templates/project-structure", AdditionalUrls = [ "/boilerplate/project-structure" ] }, + new BitNavItem { Text = "Create project", Url = "/templates/create-project", AdditionalUrls = [ "/boilerplate/create-project" ] }, + new BitNavItem { Text = "Run project", Url = "/templates/run-project", AdditionalUrls = [ "/boilerplate/run-project" ] } ]; private readonly List bswupNavItems = @@ -97,7 +97,7 @@ private void SetNavItems() { var currentUrl = navigationManager.Uri.Replace(navigationManager.BaseUri, "/", StringComparison.InvariantCultureIgnoreCase); - isTemplateDocRoute = currentUrl.Contains("templates") || currentUrl.Contains("admin-panel") || currentUrl.Contains("todo-template"); + isTemplateDocRoute = currentUrl.Contains("templates") || currentUrl.Contains("boilerplate"); isBswupDocRoute = currentUrl.Contains("bswup"); isBesqlDocRoute = currentUrl.Contains("besql"); isButilDocRoute = currentUrl.Contains("butil");