Culture gets lost and reset to master language when I call conrtoller's action (both with ajax and without ajax). The links below helps to fix issue on ajax call but I am getting this issue even when I do not use ajax. Also, it is very annoying to use attribute in all actions as explained in these articles.
Are you using an API controller? This won't know what culture you're calling it from unless you tell it explicitly / reset it based on the users cookies
Culture gets lost and reset to master language when I call conrtoller's action (both with ajax and without ajax). The links below helps to fix issue on ajax call but I am getting this issue even when I do not use ajax. Also, it is very annoying to use attribute in all actions as explained in these articles.
https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2019/4/localizationculture-is-lost-upon-ajax-request/
https://stefanolsen.com/posts/ensuring-the-right-ajax-content-language-using-a-filter-attribute/
My controller action looks like below.