[PR] Only modify the user query if NOT an ajax request