Skip to content

Commit

Permalink
fix(websites): resolve navmenu url issues in Platform website #9036 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
msynk authored Oct 27, 2024
1 parent 59c1740 commit e5e088f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public partial class MainLayout : IDisposable

private readonly List<BitNavItem> 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<BitNavItem> bswupNavItems =
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit e5e088f

Please sign in to comment.