fix: Problem Bank view link incorrectly replacing embedded iframe (#36781)

This commit is contained in:
Tony Busa
2025-05-22 15:30:43 -06:00
committed by GitHub
parent 9ba95fe45c
commit d30490e420

View File

@@ -512,7 +512,7 @@ class ItemBankBlock(ItemBankMixin, XBlock):
# Show a summary message and instructions.
summary_html = loader.render_django_template('templates/item_bank/author_view.html', {
# Due to template interpolation limitations, we have to pass some HTML for the link here:
"view_link": f'<a href="/container/{self.usage_key}">',
"view_link": f'<a target="_top" href="/container/{self.usage_key}">',
"blocks": [
{"display_name": display_name_with_default(child)}
for child in self.get_children()