diff --git a/modules/audit/pages/audit/system-audit/index(default).phtml b/modules/audit/pages/audit/system-audit/index(default).phtml index 1d7d4b2..f25ba73 100644 --- a/modules/audit/pages/audit/system-audit/index(default).phtml +++ b/modules/audit/pages/audit/system-audit/index(default).phtml @@ -46,7 +46,11 @@ $pageConfig = [ 'filterSchema' => $clientFilterSchema, 'filterChipMeta' => $filterChipMeta, 'gridLang' => $gridLang, - 'exportUrl' => lurl('admin/system-audit/export'), + // Uses the page target path, not the registered route path: the Router's + // applyRoutes() rewrite does not strip query strings before matching, so + // "admin/system-audit/export?format=csv" would miss the rewrite and 404. + // Matches the convention already used for `dataUrl: 'audit/system-audit/data'`. + 'exportUrl' => lurl('audit/system-audit/export'), 'labels' => [ 'created' => t('Created'), 'status' => t('Status'),