From 5985d53625d6936b2500ccdedabf47cbd44865b6 Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:31:48 +0800 Subject: [PATCH] fix: request url --- libs/datasource/i18n/src/scripts/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/datasource/i18n/src/scripts/request.ts b/libs/datasource/i18n/src/scripts/request.ts index 64e18bd9bd..3368feb634 100644 --- a/libs/datasource/i18n/src/scripts/request.ts +++ b/libs/datasource/i18n/src/scripts/request.ts @@ -36,7 +36,7 @@ const withTolgee = ( } else { // URL or URLLike + ?RequestInit if (typeof argArray[0] === 'string') { - argArray[0] = TOLGEE_API_URL + argArray[0]; + argArray[0] = `${TOLGEE_API_URL}/v2/projects${argArray[0]}`; } if (!argArray[1]) { argArray[1] = {};