Skip to content
Snippets Groups Projects
Unverified Commit 6d78f6aa authored by Kyle McCormick's avatar Kyle McCormick Committed by GitHub
Browse files

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
parent f8eb7bfd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment