diff --git a/AxonIvyPortal/portal/webContent/resources/js/iframe-task-template.js b/AxonIvyPortal/portal/webContent/resources/js/iframe-task-template.js index 7e32a706de..02d1c0b63f 100644 --- a/AxonIvyPortal/portal/webContent/resources/js/iframe-task-template.js +++ b/AxonIvyPortal/portal/webContent/resources/js/iframe-task-template.js @@ -1,15 +1,14 @@ var invalidIFrameSrcPath = false; let taskUrl = new URLSearchParams(window.location.search).get("taskUrl"); -let updateIframeSrc = (newSrc) => { - getPortalIframe().src = newSrc; -} + if (taskUrl){ if(taskUrl.endsWith('blank')){ window.history.back(document.referrer); } - updateIframeSrc(taskUrl) + getPortalIframe().src = taskUrl; } + loadIframe(false); var recheckFrameTimer; function loadIframe(recheckIndicator) {