Print the absolute url in a view with AspNetCore

0

I'm starting to work with AspNetCore, and I'm having trouble printing the absolute url of my project. I come from PHP and I look for something similar to the code below, written in PHP:

<?php echo $_SERVER['HTTP_HOST'];

Any ideas?

    
asked by anonymous 04.10.2016 / 15:53

1 answer

1

You have to separate the host and path in your View, follow the code.

@[email protected]
    
17.01.2017 / 20:33