i have like
https://localhost:12345/en/Dashboard
and i have @item.code="gr" and I want to replace in here 'en' with 'gr' how can i do that in html
<a href="@Url.Path.Replace($"/{currentlangugage.code}", $"/{item.code}")>
What is the correct one and this code in cshtml file. How can i do that easily on my View? Thanks for helping me!