Skip to content

Commit

Permalink
Merge pull request #1018 from axonivy-market/bug/IVYPORTAL-17122-Back…
Browse files Browse the repository at this point in the history
…-button-in-Case-details-issue-LE

bug/IVYPORTAL-17122-Back-button-in-Case-details-issue-LE
  • Loading branch information
chnam-axonivy authored Sep 10, 2024
2 parents 08b2bd3 + 5a8cfd2 commit 3807e7f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,14 @@
iframes.remove();
}
if (window.history.length > 2) {
// handle for bug https://1ivy.atlassian.net/browse/IVYPORTAL-17122
// when user open case detail from dashboard or full case list -> related task -> start task in iFrame -> cancel
// if url of current document is openning task in iFrame
if (document.referrer.includes('TaskTemplateIFrame.xhtml?taskUrl=')){
// back to case list to avoid go error: click back will navigate to openning task
backToCasesList();
return;
}
window.history.back();
} else {
// if no history or back from a page in Frame
Expand Down

0 comments on commit 3807e7f

Please sign in to comment.