From 34ff92f685c885b35ca1b68bdbc288bcba96dd5a Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Sun, 24 May 2026 07:36:20 +0530 Subject: [PATCH] fix(abdm-opd): open pdf print links directly instead of ajax modal load --- app/Views/abdm/opd_queue.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Views/abdm/opd_queue.php b/app/Views/abdm/opd_queue.php index 6b46b01..f2cd6b0 100644 --- a/app/Views/abdm/opd_queue.php +++ b/app/Views/abdm/opd_queue.php @@ -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); });