mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-02-04 06:22:59 -05:00
fix
This commit is contained in:
@@ -505,6 +505,14 @@ class LaunchView(View):
|
|||||||
'message_launch_data': launch_data, # Store full launch data for JWT creation
|
'message_launch_data': launch_data, # Store full launch data for JWT creation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Check if we have a media_friendly_token from filter launches
|
||||||
|
custom_claims = launch_data.get('https://purl.imsglobal.org/spec/lti/claim/custom', {})
|
||||||
|
media_token = custom_claims.get('media_friendly_token')
|
||||||
|
|
||||||
|
if media_token:
|
||||||
|
logger.error(f"[DEEP LINKING] Found media_friendly_token, redirecting directly to embed: {media_token}")
|
||||||
|
return HttpResponseRedirect(reverse('lti:embed_media', args=[media_token]))
|
||||||
|
|
||||||
return HttpResponseRedirect(reverse('lti:select_media'))
|
return HttpResponseRedirect(reverse('lti:select_media'))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user