mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Merge pull request #6202 from ToolJet/fix/reserved-paths-conflict
fix: Tooljet is not loading the released apps which has some specific texts in sharable link path
This commit is contained in:
commit
2fca5a1ef2
1 changed files with 6 additions and 1 deletions
|
|
@ -75,7 +75,12 @@ class AppComponent extends React.Component {
|
|||
'confirm',
|
||||
'confirm-invite',
|
||||
];
|
||||
return existedPaths.find((path) => window.location.pathname.includes(path));
|
||||
|
||||
const subpath = getSubpath();
|
||||
const subpathArray = subpath ? subpath.split('/').filter((path) => path != '') : [];
|
||||
const pathnames = window.location.pathname.split('/')?.filter((path) => path != '');
|
||||
const checkPath = () => existedPaths.find((path) => pathnames[subpath ? subpathArray.length : 0] === path);
|
||||
return pathnames?.length > 0 ? (checkPath() ? true : false) : false;
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue