diff --git a/lti_consumer/plugin/views.py b/lti_consumer/plugin/views.py index c0b412401cb0180da30bc80099a915777b4e3e21..805cd9a5d3acc2489674019da47781dd1be67b97 100644 --- a/lti_consumer/plugin/views.py +++ b/lti_consumer/plugin/views.py @@ -233,7 +233,7 @@ def launch_gate_endpoint(request, suffix=None): # pylint: disable=unused-argume preflight_response = request_params.dict() # Set LTI Launch URL. - context.update({'launch_url': lti_consumer.launch_url}) + context.update({'launch_url': preflight_response.get("redirect_uri")}) # Modify LTI Launch URL depending on launch type. # Deep Linking Launch - Configuration flow launched by