From fa73062023ffc754d4c16ed0a05776d0a7e4e6b9 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Fri, 15 May 2026 21:54:17 +0300 Subject: [PATCH] fix: make Excel hyperlinks point to verification URL instead of root to avoid accidental login redirects --- app/modules_app/invoices/export_excel.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/modules_app/invoices/export_excel.php b/app/modules_app/invoices/export_excel.php index 3d5c4c0..0759903 100644 --- a/app/modules_app/invoices/export_excel.php +++ b/app/modules_app/invoices/export_excel.php @@ -358,8 +358,9 @@ foreach ($invoices as $invIdx => $inv) { // --- Add Clickable Website Link --- // We'll move the link slightly down or put it in I1 with the QR - $sheet->setCellValue("I" . $invRow, 'musadaq.intaleqapp.com'); - $sheet->getCell("I" . $invRow)->getHyperlink()->setUrl('https://musadaq.intaleqapp.com/'); + $sheet->setCellValue("I" . $invRow, 'musadaq.intaleqapp.com/verify'); + $verifyUrl = "https://musadaq.intaleqapp.com/index.php?route=verify&id=" . $inv['id']; + $sheet->getCell("I" . $invRow)->getHyperlink()->setUrl($verifyUrl); $sheet->getStyle("I" . $invRow)->applyFromArray([ 'font' => ['color' => ['argb' => 'FFFFFFFF'], 'underline' => true, 'size' => 8], 'alignment' => ['horizontal' => Alignment::HORIZONTAL_LEFT, 'vertical' => Alignment::VERTICAL_TOP],