Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] web: open external links (from PDF viewer) in new tab
Currently when we click on external links from a PDF opened in our PDF viewer, you are redirected to the link, means you are leaving the record which is not ideal. With this commit, external links in PDF document will be opened in new tab so that the opened record is not lost. For that we need to change the default option of the pdfjs lib, because we cannot pass this parameter in iframe (link of the documentation is available in task pad). For that, we changed the value of 'externalLinkTarget' from 0 (which sets target to NONE) to 2 (which sets target to BLANK) in 'getDefaultPreferences' function. taskID-2752002 closes #84594 Signed-off-by: Thibault Delavallee (tde) <[email protected]>
- Loading branch information