Hello, I have tried to generate URL of POST action and faced the following unclear situation:
”Name in URL” of the test OrderHistoryPage for fi-SV locale is “orderhi-fisese” 1) @Url.Action("PostMethod","OrderHistoryPage") gets the following link: /se/orderhistory/PostMethod/
2) @Url.Action("PostMethod","OrderHistoryPage", new { language = ContextHelper.GetPreferredCultureName() }) leads to the following link: /se/orderhi-fisese/PostMethod/
3) When I tried to get url action of other page: @Url.Action("FindProduct", "OrderFormPage", new { language = ContextHelper.GetPreferredCultureName() }) gets the following result: /OrderFormPage/FindProduct?language=sv-FI
Could anyone please clarify me the language routing mechanism?
Hello,
I have tried to generate URL of POST action and faced the following unclear situation:
”Name in URL” of the test OrderHistoryPage for fi-SV locale is “orderhi-fisese”
1) @Url.Action("PostMethod","OrderHistoryPage")
gets the following link: /se/orderhistory/PostMethod/
2) @Url.Action("PostMethod","OrderHistoryPage", new
{
language = ContextHelper.GetPreferredCultureName()
})
leads to the following link: /se/orderhi-fisese/PostMethod/
3) When I tried to get url action of other page:
@Url.Action("FindProduct", "OrderFormPage", new
{
language = ContextHelper.GetPreferredCultureName()
})
gets the following result: /OrderFormPage/FindProduct?language=sv-FI
Could anyone please clarify me the language routing mechanism?
Is it possible to unify the returned result?
Thank you.