I have seen an interesting behavior for asp .net "Url.Action".
A link like <a href="@Url.Action("Index", "Soru")" >@baslik</a>
seems in client browser as <a href="/Soru/Index">denemebaslik</a>
, then user clicks this link and goes to target page.
In this target page a link like <a href="@Url.Action("Index", "Soru")" >@baslik</a>
seems in client browser as <a href="/Soru/Index/29271654-e19a-4096-8795-3283d8a208ed">denemebaslik</a>
@Url.Action
behaves different in different pages. My route config is like
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{*id}",
defaults: new { controller = "Giris", action = "Index", id = UrlParameter.Optional }
);
Why is this beaviour so that?