mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-03-10 23:17:21 -04:00
wtv
This commit is contained in:
11
lti/views.py
11
lti/views.py
@@ -202,10 +202,13 @@ class LaunchView(View):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def build_url_with_embed_params(base_url, embed_params):
|
def build_url_with_embed_params(base_url, embed_params):
|
||||||
"""Build URL with embed parameters."""
|
"""Build URL with embed parameters."""
|
||||||
query_string = 'mode=embed_mode'
|
# Check if base_url already has query parameters
|
||||||
if embed_params:
|
separator = '&' if '?' in base_url else '?'
|
||||||
query_string += '&' + '&'.join(embed_params)
|
|
||||||
return f"{base_url}?{query_string}"
|
query_parts = ['mode=embed_mode']
|
||||||
|
query_parts.extend(embed_params)
|
||||||
|
|
||||||
|
return f"{base_url}{separator}{'&'.join(query_parts)}"
|
||||||
|
|
||||||
def post(self, request):
|
def post(self, request):
|
||||||
"""Handle LTI launch with JWT validation"""
|
"""Handle LTI launch with JWT validation"""
|
||||||
|
|||||||
Reference in New Issue
Block a user