There was already a ticket reported and closed https://github.com/symfony/symfony/issues/15891 http://www.anyurl.com/?query=1 - valid URL http://www.anyurl.com?query=1 - invalid URL (missing slash after .com and before query=1) The fix fixed URL http://www.anyurl.com? but http://www.anyurl.com?query=1 still reported as invalid