From e3fab9b5bf4d5b2527aa4a7b2fe87dbe2d60002a Mon Sep 17 00:00:00 2001 From: Asier Isayas Date: Thu, 18 Apr 2024 15:39:13 -0400 Subject: [PATCH] Add 'mongoshell' to Legacy Mongo Shell path (#1806) * LMS Mongo Proxy support * change stirng to url for get mongo shell url * fix tests * enable feature flag * fixed unit test * add mongoshell to path --------- Co-authored-by: Asier Isayas --- src/Explorer/Tabs/MongoShellTab/getMongoShellUrl.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Explorer/Tabs/MongoShellTab/getMongoShellUrl.ts b/src/Explorer/Tabs/MongoShellTab/getMongoShellUrl.ts index 5c4c03bdb..0ecbcb83e 100644 --- a/src/Explorer/Tabs/MongoShellTab/getMongoShellUrl.ts +++ b/src/Explorer/Tabs/MongoShellTab/getMongoShellUrl.ts @@ -7,7 +7,9 @@ export function getMongoShellUrl(useMongoProxyEndpoint?: boolean): URL { const accountName = account?.name; const mongoEndpoint = account?.properties?.mongoEndpoint || account?.properties?.documentEndpoint; const queryString = `resourceId=${resourceId}&accountName=${accountName}&mongoEndpoint=${mongoEndpoint}`; - const path: string = useMongoProxyEndpoint ? `/index.html?${queryString}` : `/indexv2.html?${queryString}`; + const path: string = useMongoProxyEndpoint + ? `/mongoshell/index.html?${queryString}` + : `/mongoshell/indexv2.html?${queryString}`; return new URL(path, configContext.hostedExplorerURL); }