Skip to content

Commit

Permalink
Merge branch '8085-templates-boilerplate-slash-route' of https://gith…
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Jul 22, 2024
2 parents 8f84383 + 0016732 commit e3c0d21
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected override async Task OnInitAsync()
{
Text = Localizer[nameof(AppStrings.Home)],
IconName = BitIconName.Home,
Url = "/",
Url = Urls.HomePage,
},
//#if (sample == "Admin")
new()
Expand Down
34 changes: 17 additions & 17 deletions src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Urls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,42 @@ namespace Boilerplate.Shared;

public static class Urls
{
public const string HomePage = "";
public const string HomePage = "/";

public const string NotAuthorizedPage = "not-authorized";
public const string NotAuthorizedPage = "/not-authorized";

public const string NotFoundPage = "not-found";
public const string NotFoundPage = "/not-found";

public const string TermsPage = "terms";
public const string TermsPage = "/terms";

public const string ProfilePage = "profile";
public const string ProfilePage = "/profile";

public const string ConfirmPage = "confirm";
public const string ConfirmPage = "/confirm";

public const string ForgotPasswordPage = "forgot-password";
public const string ForgotPasswordPage = "/forgot-password";

public const string ResetPasswordPage = "reset-password";
public const string ResetPasswordPage = "/reset-password";

public const string SignInPage = "sign-in";
public const string SignInPage = "/sign-in";

public const string SignUpPage = "sign-up";
public const string SignUpPage = "/sign-up";

//#if (sample == "Admin")
public const string AddOrEditCategoryPage = "add-edit-category";
public const string AddOrEditCategoryPage = "/add-edit-category";

public const string CategoriesPage = "categories";
public const string CategoriesPage = "/categories";

public const string DashboardPage = "dashboard";
public const string DashboardPage = "/dashboard";

public const string ProductsPage = "products";
public const string ProductsPage = "/products";

//#elif (sample == "Todo")
public const string TodoPage = "todo";
public const string TodoPage = "/todo";
//#endif

//#if (offlineDb == true)
public const string OfflineEditProfilePage = "offline-edit-profile";
public const string OfflineEditProfilePage = "/offline-edit-profile";
//#endif

public const string AboutPage = "about";
public const string AboutPage = "/about";
}

0 comments on commit e3c0d21

Please sign in to comment.