From 48e64a61f826c15d452d8c46d51e0e356db84708 Mon Sep 17 00:00:00 2001 From: Nick Sellen Date: Mon, 12 Dec 2022 18:59:18 +0000 Subject: [PATCH] Ensure absolute URL paths start with / (#2623) Fixes #2618 --- src/utils/absoluteURL.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/absoluteURL.js b/src/utils/absoluteURL.js index f87a4a6c20..c6c8cae8b6 100644 --- a/src/utils/absoluteURL.js +++ b/src/utils/absoluteURL.js @@ -8,5 +8,6 @@ export const absoluteURL = path => { const origin = process.env.MODE === 'cordova' ? process.env.KARROT.BACKEND : window.location.origin + if (!path.startsWith('/')) path = '/' + path return `${origin}${path}` }