Skip to content
Snippets Groups Projects
Commit 86f564e1 authored by Jolyon Bloomfield's avatar Jolyon Bloomfield
Browse files

Fixing course links in solution blocks

parent 6dc70a67
No related branches found
No related tags found
No related merge requests found
......@@ -1026,6 +1026,8 @@ class CapaMixin(ScorableXBlockMixin, CapaFields):
for answer_id in answers:
try:
answer_content = self.runtime.replace_urls(answers[answer_id])
if self.runtime.replace_course_urls:
answer_content = self.runtime.replace_course_urls(answer_content)
if self.runtime.replace_jump_to_id_urls:
answer_content = self.runtime.replace_jump_to_id_urls(answer_content)
new_answer = {answer_id: answer_content}
......
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