Hi, I have a real simple problem, but can't seem to figure it out.
The following doesn't work because of the way MVC builds the URL (It includes all the route information). I want pathname to return the virtual directory path only.
All I'm doing is redirecting to a different route when a user selects an ID from a drop down list.
$(document).ready(function() {
$('#TransactionIds').change(function() {
document.location = window.location.pathname + "/CeuTransaction/Index/" + $('#TransactionIds').val();
});
});