On a website I am working on, we have a bunch of jquery that redirects to the next level of a page based on what is chosen in a select option. The change function works perfectly fine, but google webmaster tools is not reading the code properly, and is returning a bunch of 404 errors in GWT.
var type = $('#select-type option:selected').attr('value') ;
if (type == 'Masters' || type == 'Bachelors' || type == 'Associates')
{
location.href = '/'+type+'/Degree-in-Criminal-Justice';
}
GWT returns a 404 error for /Degree-in-Criminal-Justice, and ignores the type variable, which is part of the valid url.