fix: render library assets named xblock-

The previous pattern for matching was too broad and would break
the rendering of assets that were prefixed with "xblock".
This commit is contained in:
Daniel Valenzuela
2024-12-09 12:05:01 -03:00
committed by GitHub
parent 9d9a68528f
commit eadf5e2d79
2 changed files with 11 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ from opaque_keys.edx.locator import AssetLocator
from xmodule.contentstore.content import StaticContent
log = logging.getLogger(__name__)
XBLOCK_STATIC_RESOURCE_PREFIX = '/static/xblock'
XBLOCK_STATIC_RESOURCE_PREFIX = '/static/xblock/'
def _url_replace_regex(prefix):