From 1238f85890735cc23ce16358f76c266b9fd730d3 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 15 Oct 2020 14:46:24 +0100 Subject: [PATCH] replacing pathname --- packages/client/src/render/getAppId.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/render/getAppId.js b/packages/client/src/render/getAppId.js index 5525c67358..4cbb6692b5 100644 --- a/packages/client/src/render/getAppId.js +++ b/packages/client/src/render/getAppId.js @@ -3,7 +3,7 @@ export const parseAppIdFromCookie = docCookie => { docCookie.split(";").find(c => c.trim().startsWith("budibase:token")) || docCookie.split(";").find(c => c.trim().startsWith("builder:token")) - if (!cookie) return location.pathname.replace("/") + if (!cookie) return location.pathname.replace(/\//g, "") const base64Token = cookie.substring(lengthOfKey)