With this snippet you can redirect your submitted data from the current form to another url and pass some args too.
$form_state->setRedirect('yml_module_name.yml_route_name',['arg1' => $form_state->getValue('node_id'),'arg2' => $form_state->getValue('some_id')]);
This will redirect your submitted form data to yml_module_name.yml_route_name (e.g test-url?arg1=1&arg2=5)