[BUGFIX] Query mark in URL doesn't break AJAX URL determinition

If there is no ``ajaxUrl`` defined, the current request's URL
is used. However, if this current URL contains a question mark,
this URL is now correctly split between the path and the query string.