Empty location.query on compile