Skip to content

Commit

Permalink
fix: Fix localization middleware order
Browse files Browse the repository at this point in the history
  • Loading branch information
vyruz1986 committed Oct 7, 2023
1 parent d9dbfbe commit c7ebfee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseStaticFiles();

app.UseRouting();
app.UseRequestLocalizationWithSupportedCultures();
app.UseAuthentication();
app.UseAuthorization();

Expand All @@ -117,7 +118,5 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
endpoints.MapBlazorHub();
endpoints.MapFallbackToPage("/_Host");
});

app.UseRequestLocalizationWithSupportedCultures();
}
}

0 comments on commit c7ebfee

Please sign in to comment.