From 60a1f70e0ffd5b8679d9d6e2292ee81ac4f3a377 Mon Sep 17 00:00:00 2001 From: ysmoradi Date: Mon, 22 Jul 2024 12:02:09 +0200 Subject: [PATCH] fix --- .../Components/Pages/Identity/SignUpPage.razor | 2 +- .../src/Server/Boilerplate.Server.Web/Program.Middlewares.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor index f5432e48fc..a22432cbfc 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor @@ -102,7 +102,7 @@
@Localizer[nameof(AppStrings.ConfirmMessageInSignUp)] - + @Localizer[nameof(AppStrings.Confirm)]
diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs index 9d171ae5fc..518fda1e17 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs @@ -159,12 +159,12 @@ private static void Configure_401_403_404_Pages(WebApplication app) var qs = HttpUtility.ParseQueryString(httpContext.Request.QueryString.Value ?? string.Empty); qs.Remove("try_refreshing_token"); var returnUrl = UriHelper.BuildRelative(httpContext.Request.PathBase, httpContext.Request.Path, new QueryString(qs.ToString())); - httpContext.Response.Redirect($"/{Urls.NotAuthorizedPage}?return-url={returnUrl}&isForbidden={(is403 ? "true" : "false")}"); + httpContext.Response.Redirect($"{Urls.NotAuthorizedPage}?return-url={returnUrl}&isForbidden={(is403 ? "true" : "false")}"); } else if (httpContext.Response.StatusCode is 404 && httpContext.GetEndpoint() is null /* Please be aware that certain endpoints, particularly those associated with web API actions, may intentionally return a 404 error. */) { - httpContext.Response.Redirect($"/{Urls.NotFoundPage}?url={httpContext.Request.GetEncodedPathAndQuery()}"); + httpContext.Response.Redirect($"{Urls.NotFoundPage}?url={httpContext.Request.GetEncodedPathAndQuery()}"); } else {