1+ import { getExternalLinkUrl } from '@edx/frontend-platform' ;
12import { StrictDict } from '../../utils' ;
23import singleSelect from '../images/singleSelect.png' ;
34import multiSelect from '../images/multiSelect.png' ;
@@ -41,7 +42,7 @@ export const getProblemTypes = (formatMessage) => ({
4142 preview : singleSelect ,
4243 previewDescription : formatMessage ( problemMessages . singleSelectDescription ) ,
4344 description : formatMessage ( problemMessages . singleSelectInstruction ) ,
44- helpLink : 'https://docs.openedx.org/en/latest/educators/concepts/exercise_tools/about_multi_select.html' ,
45+ helpLink : getExternalLinkUrl ( 'https://docs.openedx.org/en/latest/educators/concepts/exercise_tools/about_multi_select.html' ) ,
4546 prev : ProblemTypeKeys . TEXTINPUT ,
4647 next : ProblemTypeKeys . MULTISELECT ,
4748 template : basicProblemTemplates . singleSelect . olx ,
@@ -52,7 +53,7 @@ export const getProblemTypes = (formatMessage) => ({
5253 preview : multiSelect ,
5354 previewDescription : formatMessage ( problemMessages . multiSelectDescription ) ,
5455 description : formatMessage ( problemMessages . multiSelectInstruction ) ,
55- helpLink : 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_multi_select.html' ,
56+ helpLink : getExternalLinkUrl ( 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_multi_select.html' ) ,
5657 next : ProblemTypeKeys . DROPDOWN ,
5758 prev : ProblemTypeKeys . SINGLESELECT ,
5859 template : basicProblemTemplates . multiSelect . olx ,
@@ -63,7 +64,7 @@ export const getProblemTypes = (formatMessage) => ({
6364 preview : dropdown ,
6465 previewDescription : formatMessage ( problemMessages . dropdownDescription ) ,
6566 description : formatMessage ( problemMessages . dropdownInstruction ) ,
66- helpLink : 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_dropdown.html' ,
67+ helpLink : getExternalLinkUrl ( 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_dropdown.html' ) ,
6768 next : ProblemTypeKeys . NUMERIC ,
6869 prev : ProblemTypeKeys . MULTISELECT ,
6970 template : basicProblemTemplates . dropdown . olx ,
@@ -74,7 +75,7 @@ export const getProblemTypes = (formatMessage) => ({
7475 preview : numericalInput ,
7576 previewDescription : formatMessage ( problemMessages . numericalInputDescription ) ,
7677 description : formatMessage ( problemMessages . numericalInputInstruction ) ,
77- helpLink : 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/manage_numerical_input_problem.html' ,
78+ helpLink : getExternalLinkUrl ( 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/manage_numerical_input_problem.html' ) ,
7879 next : ProblemTypeKeys . TEXTINPUT ,
7980 prev : ProblemTypeKeys . DROPDOWN ,
8081 template : basicProblemTemplates . numeric . olx ,
@@ -85,7 +86,7 @@ export const getProblemTypes = (formatMessage) => ({
8586 preview : textInput ,
8687 previewDescription : formatMessage ( problemMessages . textInputDescription ) ,
8788 description : formatMessage ( problemMessages . textInputInstruction ) ,
88- helpLink : 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_text_input.html' ,
89+ helpLink : getExternalLinkUrl ( 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_text_input.html' ) ,
8990 prev : ProblemTypeKeys . NUMERIC ,
9091 next : ProblemTypeKeys . SINGLESELECT ,
9192 template : basicProblemTemplates . textInput . olx ,
@@ -105,7 +106,7 @@ export const ProblemTypes = StrictDict({
105106 preview : singleSelect ,
106107 previewDescription : 'Learners must select the correct answer from a list of possible options.' ,
107108 description : 'Enter your single select answers below and select which choices are correct. Learners must choose one correct answer.' ,
108- helpLink : 'https://docs.openedx.org/en/latest/educators/concepts/exercise_tools/about_multi_select.html' ,
109+ helpLink : getExternalLinkUrl ( 'https://docs.openedx.org/en/latest/educators/concepts/exercise_tools/about_multi_select.html' ) ,
109110 prev : ProblemTypeKeys . TEXTINPUT ,
110111 next : ProblemTypeKeys . MULTISELECT ,
111112 template : basicProblemTemplates . singleSelect . olx ,
@@ -116,7 +117,7 @@ export const ProblemTypes = StrictDict({
116117 preview : multiSelect ,
117118 previewDescription : 'Learners must select all correct answers from a list of possible options.' ,
118119 description : 'Enter your multi select answers below and select which choices are correct. Learners must choose all correct answers.' ,
119- helpLink : 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_multi_select.html' ,
120+ helpLink : getExternalLinkUrl ( 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_multi_select.html' ) ,
120121 next : ProblemTypeKeys . DROPDOWN ,
121122 prev : ProblemTypeKeys . SINGLESELECT ,
122123 template : basicProblemTemplates . multiSelect . olx ,
@@ -127,7 +128,7 @@ export const ProblemTypes = StrictDict({
127128 preview : dropdown ,
128129 previewDescription : 'Learners must select the correct answer from a list of possible options' ,
129130 description : 'Enter your dropdown answers below and select which choice is correct. Learners must select one correct answer.' ,
130- helpLink : 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_dropdown.html' ,
131+ helpLink : getExternalLinkUrl ( 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_dropdown.html' ) ,
131132 next : ProblemTypeKeys . NUMERIC ,
132133 prev : ProblemTypeKeys . MULTISELECT ,
133134 template : basicProblemTemplates . dropdown . olx ,
@@ -138,7 +139,7 @@ export const ProblemTypes = StrictDict({
138139 preview : numericalInput ,
139140 previewDescription : 'Specify one or more correct numeric answers, submitted in a response field.' ,
140141 description : 'Enter correct numerical input answers below. Learners must enter one correct answer.' ,
141- helpLink : 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/manage_numerical_input_problem.html' ,
142+ helpLink : getExternalLinkUrl ( 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/manage_numerical_input_problem.html' ) ,
142143 next : ProblemTypeKeys . TEXTINPUT ,
143144 prev : ProblemTypeKeys . DROPDOWN ,
144145 template : basicProblemTemplates . numeric . olx ,
@@ -149,7 +150,7 @@ export const ProblemTypes = StrictDict({
149150 preview : textInput ,
150151 previewDescription : 'Specify one or more correct text answers, including numbers and special characters, submitted in a response field.' ,
151152 description : 'Enter your text input answers below and select which choices are correct. Learners must enter one correct answer.' ,
152- helpLink : 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_text_input.html' ,
153+ helpLink : getExternalLinkUrl ( 'https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/add_text_input.html' ) ,
153154 prev : ProblemTypeKeys . NUMERIC ,
154155 next : ProblemTypeKeys . SINGLESELECT ,
155156 template : basicProblemTemplates . textInput . olx ,
0 commit comments