fix(abdm-opd): open pdf print links directly instead of ajax modal load
This commit is contained in:
parent
fcc7ef50e6
commit
34ff92f685
|
|
@ -287,6 +287,12 @@
|
|||
if (!href || href.startsWith('#') || href.startsWith('javascript:') || href.startsWith('mailto:') || href.startsWith('tel:')) {
|
||||
return;
|
||||
}
|
||||
const normalizedHref = normalizeOpdUrl(href);
|
||||
if (/\.pdf(\?|$)/i.test(normalizedHref) || normalizedHref.indexOf('/opd_print/') !== -1) {
|
||||
e.preventDefault();
|
||||
window.open(normalizedHref, '_blank');
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
loadOpdModalContent(href, 'GET', null);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user