When I submit a form my browser goes to here:
Administration/Member/Navigate?personid=1771&type=Information
When it should go here:
Administration/Member/Navigate?personid=1771&type=Information
The way I call the submit seems ordinary:
$("#user-form").submit();
Probably not related, but we've recently converted from aspx to razor. This has caused a lot of artifacts 'like this' to show up. It looks like the extra characters are coming from jQuery, though.
Edit:
I mistakenly thought the submit() call went right into the jQuery library (seemed to be the case when I was stepping through it), but there also seems to be this function:
$("#user-form").submit(function () {
var isValid = $("#user-form").valid();
if (isValid)
{
$.ajax({
type: "POST",
url: "/UserManagement/ClassUser/Edit",
data: $("#user-form").serialize(),
success: function (id) {
window.location.href = returnUrl;
},
error: function(xhr, textStatus, error) {
showAlert("Error Saving User", xhr.responseText);
}
});
}
return false;
});
Apparently the returnUrl variable had some extra encoding in it.
The answer appears to be here: