I have an ASP.NET MVC 5 project and I have this script in a view : 

```
 Yes : function () {
                        window.location.href = '~/Model/Selected';
                    },

```

When I click yes on popup it goes from: 

> 
> <http://localhost:51234/Model/Details/>
> 
> 
> 

to

> 
> <http://localhost:51234/Model/Details/~/Model/Selected>
> 
> 
> 

I want it to go to : 

> 
> <http://localhost:51234/Model/Selected/>
> 
> 
> 

How can I do that? Thanks.