I have a MVC project and I publish him in my Web Server with IIS

but some button, I have the following code

**Javascript**

```
$("#btn").click(function () {
   window.location.href = "/Home/Login";
});

```

This is just a sample. 

When I click in my button, the Login method of my Home Controller is triggered. This works fine in localhost. 

When I put the project in the server, I need change the `href` to put the folder name where the application are in `wwwroot`

```
$("#btn").click(function () {
   window.location.href = "/Web/Home/Login";
});

```

How can I prevent this ? 
I have too many images and functions that don't use the folder name in wwwroot.