asp.net mvc - Same link in menu and in footer are in different languages -
my asp.net mvc 4 website urls looks "/language/controller/action".
html code of link in menu , in footer same.
<li><a href="@url.action("websitedevelopment", "service", new { area = "" })">website development</a></li>
when site opened in "en-gb" culture link in menu pinting to
/en-gb/service/websitedevelopment
but link in footer is
/hy-am/service/websitedevelopment
how possible? how can fix this?
you don't specify "language" in url.action, takes default language. asp.net links absolute ones, without specifying language, it's
/default-language/controller/action
if want language taken current url, need write own url.action function, or extend it.
Comments
Post a Comment