From 1ffeff9945eab0b680586a74509de71bb9a93b59 Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Thu, 13 Jan 2022 06:28:54 +0530 Subject: [PATCH] fix: Double slash issue for download link --- src/CONST.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CONST.js b/src/CONST.js index 0e012d221804..d210cd21a224 100755 --- a/src/CONST.js +++ b/src/CONST.js @@ -1,8 +1,9 @@ import lodashGet from 'lodash/get'; import Config from 'react-native-config'; +import * as Url from './libs/Url'; const CLOUDFRONT_URL = 'https://d2k5nsl2zxldvw.cloudfront.net'; -const ACTIVE_ENVIRONMENT_NEW_EXPENSIFY_URL = lodashGet(Config, 'EXPENSIFY_URL_CASH', 'https://new.expensify.com'); +const ACTIVE_ENVIRONMENT_NEW_EXPENSIFY_URL = Url.addTrailingForwardSlash(lodashGet(Config, 'EXPENSIFY_URL_CASH', 'https://new.expensify.com')); const PLATFORM_OS_MACOS = 'Mac OS'; const ANDROID_PACKAGE_NAME = 'com.expensify.chat'; @@ -16,7 +17,7 @@ const CONST = { APP_DOWNLOAD_LINKS: { ANDROID: `https://play.google.com/store/apps/details?id=${ANDROID_PACKAGE_NAME}`, IOS: 'https://apps.apple.com/us/app/expensify-cash/id1530278510', - DESKTOP: `${ACTIVE_ENVIRONMENT_NEW_EXPENSIFY_URL}/NewExpensify.dmg`, + DESKTOP: `${ACTIVE_ENVIRONMENT_NEW_EXPENSIFY_URL}NewExpensify.dmg`, }, DATE: { MOMENT_FORMAT_STRING: 'YYYY-MM-DD',