I'm trying to do something like what is microsoft used for docs site. for example when I enter the link below in addressbar, microsoft docs site redirects me to default cultured link as what is in second link.
first link: https://learn.microsoft.com/aspnet/core/fundamentals/localization?view=aspnetcore-2.2 Second Link: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-2.2
I go step by step with this article (https://joonasw.net/view/aspnet-core-localization-deep-dive) and project successfully runs and I can change culture by calling urls like
localhost:5001/tr-TR/home/index ({culture}/[controller]/[action])
but when I try to route to
localhost:5001/home/index (without culture route value)
I get error 404.
What I need is to route the above link into some shared controller action and then redirect it to
localhost:5001/{defaultculture}/home/index
Thank you in advance.