6

Looking at the msdn (UrlHelper.Route, UrlHelper.Link) they seem quite identical. Are there any reasons to use one or the other?

Jacek M
  • 2,349
  • 5
  • 22
  • 47

1 Answers1

11

Route() returns a relative URI, Link() an absolute one.

Source: GitHub. Link() prepends Request.RequestUri to the result of Route().

CodeCaster
  • 147,647
  • 23
  • 218
  • 272