fix: staff debug actions depended on legacy courseware URL (#26658)
The Staff Debug Actions didn't work in the Learning MFE because the underlying JS depended on the URL being formatted as /courses/<course_key>/... in order to parse out the course key. This worked in the legacy experience, but breaks in the chromeless xblock view, which is rendered under the URL /xblock/<usage_key>/... The fix is to explicitly pass the course key into the templated courseware HTML as a data attribute. TNL-7955
Showing
- lms/djangoapps/certificates/migrations/__pycache__/0010_certificatetemplate_language.cpython-38.pyc.140625665085040 0 additions, 0 deletions...rtificatetemplate_language.cpython-38.pyc.140625665085040
- lms/static/js/spec/staff_debug_actions_spec.js 19 additions, 20 deletionslms/static/js/spec/staff_debug_actions_spec.js
- lms/static/js/staff_debug_actions.js 39 additions, 24 deletionslms/static/js/staff_debug_actions.js
- lms/templates/staff_problem_info.html 1 addition, 1 deletionlms/templates/staff_problem_info.html
Loading
Please register or sign in to comment