Merge pull request #8252 from ToolJet/main

Merge main to develop
This commit is contained in:
Midhun G S 2023-12-07 11:31:58 +05:30 committed by GitHub
commit 10e798db84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View file

@ -1 +1 @@
2.24.3
2.24.4

View file

@ -1 +1 @@
2.24.3
2.24.4

View file

@ -120,8 +120,10 @@ export const getWorkspaceIdOrSlugFromURL = () => {
};
export const excludeWorkspaceIdFromURL = (pathname) => {
if (!['/integrations', '/applications/', '/switch-workspace'].find((path) => pathname.startsWith(path))) {
pathname = getSubpath() ? pathname.replace(getSubpath(), '') : pathname;
const subPath = getSubpath();
const tempPathname = subPath ? pathname.replace(subPath, '') : pathname;
if (!['/integrations', '/applications/', '/switch-workspace'].find((path) => tempPathname.startsWith(path))) {
pathname = tempPathname;
const paths = pathname?.split('/').filter((path) => path !== '');
paths.shift();
const newPath = paths.join('/');

View file

@ -1 +1 @@
2.24.3
2.24.4