mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
fix: public apps are not loading (#8247)
This commit is contained in:
parent
839bca2c25
commit
3734e6fc00
1 changed files with 3 additions and 2 deletions
|
|
@ -120,8 +120,9 @@ export const getWorkspaceIdOrSlugFromURL = () => {
|
|||
};
|
||||
|
||||
export const excludeWorkspaceIdFromURL = (pathname) => {
|
||||
if (!['/integrations', '/applications/', '/switch-workspace'].find((path) => pathname.startsWith(path))) {
|
||||
pathname = getSubpath() ? pathname.replace(getSubpath(), '') : pathname;
|
||||
const tempPathname = getSubpath() ? pathname.replace(getSubpath(), '') : 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('/');
|
||||
|
|
|
|||
Loading…
Reference in a new issue