Looking at the msdn (UrlHelper.Route, UrlHelper.Link) they seem quite identical. Are there any reasons to use one or the other?
What is the difference between UrlHelper.Route and UrlHelper.Link methods?
Route()
returns a relative URI, Link()
an absolute one.
Source: GitHub. Link()
prepends Request.RequestUri
to the result of Route()
.
© 2022 - 2024 — McMap. All rights reserved.