buildUrl is supposed to build url by itself. Only thing you need to pass is query string - without ampersand