Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Retrieve the applications url when using virtual directory

$
0
0

We want to be able to use virtual directories for example www.domain.com/myApp

In MVC 5 we used request.ApplicationPath

for example:  request.Url.Scheme + "://" + request.Url.Authority + request.ApplicationPath.TrimEnd('/')

How can we accomplish the same in mvc 6?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>