Redirect user to new tour after creating a service

We leave the existing tour routes available for the moment so we don't
break the flow for anyone whilst this deploys
This commit is contained in:
David McDonald
2020-09-30 14:23:15 +01:00
parent f0a8c97eeb
commit ec0af6b151
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ def add_service():
example_sms_template = _create_example_template(service_id) example_sms_template = _create_example_template(service_id)
return redirect(url_for( return redirect(url_for(
'main.start_tour', 'main.begin_tour',
service_id=service_id, service_id=service_id,
template_id=example_sms_template['data']['id'] template_id=example_sms_template['data']['id']
)) ))

View File

@@ -144,7 +144,7 @@ def test_should_add_service_and_redirect_to_tour_when_no_services(
}, },
_expected_status=302, _expected_status=302,
_expected_redirect=url_for( _expected_redirect=url_for(
'main.start_tour', 'main.begin_tour',
service_id=101, service_id=101,
template_id="Example%20text%20message%20template", template_id="Example%20text%20message%20template",
_external=True, _external=True,