What is the difference between UrlHelper.Route and UrlHelper.Link methods?

Looking at msdn ( UrlHelper.Route , UrlHelper.Link ), they seem to be exactly the same. Are there any reasons for using one or the other?

+5
source share
1 answer

Route() returns the relative URI, Link() absolute.

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

+8
source

Source: https://habr.com/ru/post/1232962/


All Articles