|
|
@@ -189,7 +189,7 @@ export const generateBlockQuestion = async (
|
|
|
forceNew: boolean = false,
|
|
|
): Promise<QuestionGenerationResponseVO> => {
|
|
|
try {
|
|
|
- const url = new URL(`${API_BASE_URL}/api/checkpoint/generate/${blockId}`)
|
|
|
+ const url = new URL(`${API_BASE_URL}/api/checkpoint/generate/${blockId}`, window.location.origin)
|
|
|
if (forceNew) {
|
|
|
url.searchParams.append('forceNew', 'true')
|
|
|
}
|