Looking at the msdn (UrlHelper.Route, UrlHelper.Link) they seem quite identical. Are there any reasons to use one or the other?
Route()
returns a relative URI, Link()
an absolute one.
Source: GitHub. Link()
prepends Request.RequestUri
to the result of Route()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With