diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php
index 4cd6829967f982ee538d613f1beac53225d7c979..e4fdafcc25a8a72fa2d0eb0cb721eebafd5feae5 100644
--- a/include/ajax.tickets.php
+++ b/include/ajax.tickets.php
@@ -343,11 +343,7 @@ class TicketsAjaxAPI extends AjaxController {
         if(!$thisstaff || !($ticket=Ticket::lookup($tid)) || !$ticket->checkStaffAccess($thisstaff))
             Http::response(404, __('No such ticket'));
 
-        ob_start();
-        $resp = ob_get_contents();
-        ob_end_clean();
-
-        return $resp;
+        include STAFFINC_DIR . 'templates/ticket-preview.tmpl.php';
     }
 
     function addRemoteCollaborator($tid, $bk, $id) {