Skip to content

Library XBlocks cannot reference assets named "xblock*" #35853

Description

@bradenmacdonald
  1. Upload an image named xblock-something.png to a Text component in a v2 content library.
  2. Reference that image in the HTML, as <img src="/static/xblock-something.png" />
  3. The image will not display in the preview, due to this code:

https://github.com/openedx/edx-platform/blob/3e43e33eff7038183c4088fe29209ddcb37ab47e/common/djangoapps/static_replace/__init__.py#L116-L119

Screenshot 2024-11-14 at 1 10 44 PM

Metadata

Metadata

Assignees

Labels

bugReport of or fix for something that isn't working as intended

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions