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?
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?
You have to separate the host and path in your View, follow the code.
@[email protected]