I am trying to figure out how i can change links on a _layout.cshtml based on the requested view.
When I am on the Home/Index I want the href to be '#Unhealthy' but when im on any other page, I want it to redirect back to the home page '/Home/Index/#Unhealthy'
When on other page
<li>
<a href="/Home/Index/#Unhealthy"><i class="fa fa-warning warning"></i></a>
</li>
When on Home/Index
<li>
<a href="#Unhealthy"><i class="fa fa-warning warning"></i></a>
</li>
How can I determine the requested view to swap this value?
*Note: I suppose if I cant do it at the server I can always change the values with javascript/jquery