fixes query params are passed as slug to the app url for go-to-app action (#4118)

This commit is contained in:
Arpit 2022-09-26 18:57:45 +05:30 committed by GitHub
parent 962e4d36cc
commit 3ca7de1c40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -250,7 +250,7 @@ export const executeAction = (_ref, event, mode, customVariables) => {
_ref.props.history.go();
} else {
if (confirm('The app will be opened in a new tab as the action is triggered from the editor.')) {
window.open(urlJoin(window.public_config?.TOOLJET_HOST, `applications/${slug}`));
window.open(urlJoin(window.public_config?.TOOLJET_HOST, url));
}
}
return Promise.resolve();