So I've got a dropdownlist in my View History:
@Html.DropDownList("ddlAccounts", null, new { @onchange="onChange(this.value);" })
and I have this js event to replace the url ../History/ to ../History/2, ../History/5
function onChange(value) {
window.location.href = value;
}
Instead it always adds the value to the current url. So I get History/2/5 for example after changing index in dropdown.