Compare commits

..

2 Commits

Author SHA1 Message Date
Hamza-Ayed
53284b971a Update: 2026-05-15 21:55:17 2026-05-15 21:55:17 +03:00
Hamza-Ayed
fa73062023 fix: make Excel hyperlinks point to verification URL instead of root to avoid accidental login redirects 2026-05-15 21:54:17 +03:00
2 changed files with 4 additions and 3 deletions

View File

@@ -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],

View File

@@ -11,7 +11,7 @@ $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$route = $_GET['route'] ?? str_replace('/api/', '', $uri);
$route = trim($route, '/');
if ($route === 'verify' || $route === 'v.php') {
if ($route === 'verify' || $route === 'v.php' || $route === 'v1/verify') {
$id = $_GET['id'] ?? null;
require_once APP_PATH . '/modules_app/invoices/verify_public.php';
exit;