Redirecting unknown cultures when using the url culture provider

added by DotNetKicks
12/20/2016 12:59:24 PM


This is the next in a series of posts on using the middleware as filters feature of ASP.NET Core 1.1 to add a url culture provider to your application. In this post I show how to handle the case where a user requests a culture that does not exist, or that we do not support, by redirecting to a URL with a supported culture.