How to get current url in view in asp.net core

 

You have to get the host and path separately.

 @Context.Request.Host
 @Context.Request.Path

Post a Comment

0 Comments