Closed KristinAoki closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 88.90%. Comparing base (
3dfc579
) to head (97e0de8
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
This PR fixes the error of relative asset urls incorrectly rewriting the conversion to the static url. The regex matcher was catching all relative asset url formats:
/assets/courseware/v1/hash/asset-v1:org+num+run+type@asset+block/image.jpeg
/asset-v1:org+num+run+type@asset+block@image.jpeg
/asset-v1:org+num+run+type@asset+block/image.jpeg
This resulted in the first two version rewriting correctly as
/static/image.jpeg
and the third rewriting incorrectly as/static/assetblockimage.jpeg
.Testing
Repeat the steps in the text editor and advanced problem editor. Also, test opening and save existing content for regular problem editor.