Skip to content

Commit

Permalink
COMPCRM-70: Fix the errors when accessing case webforms
Browse files Browse the repository at this point in the history
  • Loading branch information
asem-compuco committed Feb 16, 2023
1 parent 0d443e4 commit 3cdb13e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/
function doAction (cases, action, callbackFn) {
var window;
var url;
var urlObject = { case1: cases[0].id };

if (action.clientID) {
Expand All @@ -34,7 +35,8 @@
{ expires: 1800000 }
);

window = $window.open(civicaseCrmUrl(action.path, urlObject), '_blank');
url = civicaseCrmUrl(action.path, urlObject).replace('/civicrm', '/');
window = $window.open(url, '_blank');
window.focus();
}

Expand Down

0 comments on commit 3cdb13e

Please sign in to comment.