mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
commit
10e798db84
4 changed files with 7 additions and 5 deletions
2
.version
2
.version
|
|
@ -1 +1 @@
|
|||
2.24.3
|
||||
2.24.4
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
2.24.3
|
||||
2.24.4
|
||||
|
|
|
|||
|
|
@ -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('/');
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
2.24.3
|
||||
2.24.4
|
||||
|
|
|
|||
Loading…
Reference in a new issue