You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see how I could use the RouteData for e.g. static files or custom middleware that comes after UseRequestLocalization and before UseRouting. How should this be solved?
The routing middleware in endpoint routing only decides what route matches. The request continues to flow through the remaining middlewares and the route data is available after the routing middleware has run.
The right thing to do is to put UseLocalizalization after UseRouting.
This issue is about the order of configuration.
string[] SupportedCultures = new[] { "en", "de", "fr", "nl" };
My configuration:
The current documentation, which is not up-to-date BTW:
But
RouteDataRequestCultureProvider
is ignored when I putUseRequestLocalization
beforeStaticFiles
(or actually beforeUseRouting
):And works only when put after UseRouting:
I don't see how I could use the RouteData for e.g. static files or custom middleware that comes after UseRequestLocalization and before UseRouting. How should this be solved?
Additional information:
The text was updated successfully, but these errors were encountered: