Skip to content

Commit

Permalink
Merge pull request #900 from compucorp/COMPCRM-70-fix-case-webform-url
Browse files Browse the repository at this point in the history
COMPCRM-70: Fix the errors when accessing case webforms
  • Loading branch information
olayiwola-compucorp authored Apr 11, 2023
2 parents 27ed68e + 3cdb13e commit bec50fb
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 bec50fb

Please sign in to comment.