From 3cdb13e61d4b2b5f88f2c506d256a1ef86a1ca6b Mon Sep 17 00:00:00 2001 From: asem-compuco Date: Wed, 15 Feb 2023 13:11:44 +0200 Subject: [PATCH] COMPCRM-70: Fix the errors when accessing case webforms --- .../actions/services/go-to-webform-case-action.service.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ang/civicase/case/actions/services/go-to-webform-case-action.service.js b/ang/civicase/case/actions/services/go-to-webform-case-action.service.js index e25b1e191..e2cee1c60 100644 --- a/ang/civicase/case/actions/services/go-to-webform-case-action.service.js +++ b/ang/civicase/case/actions/services/go-to-webform-case-action.service.js @@ -21,6 +21,7 @@ */ function doAction (cases, action, callbackFn) { var window; + var url; var urlObject = { case1: cases[0].id }; if (action.clientID) { @@ -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(); }