We would like to send users to the correct channel if they’re coming from an outside URL. This would be done by checking the country on the address for already signed in users or by an IP lookup for guests and then redirect to the URL of the channel for the country we find.
Where would be the best place to do this in the code? Looks like in RequestModelActionFilter.OnActionExecuting could work but maybe there a better place for this?
In one of my projects we need to check IP-addresses for access and we solved it by injecting Middleware in Startup.cs using app.UseMiddleware and from there read the HttpContext stuff