fix: smart 404 utilise le dernier segment de l'URL comme requete

This commit is contained in:
Cedric Abonnel
2026-05-12 22:51:55 +02:00
parent 7de1cbaed8
commit 98c72f721f
5 changed files with 55 additions and 51 deletions
+1 -1
View File
@@ -1861,7 +1861,7 @@ switch ($action) {
'/'
);
if ($notFoundPath !== '') {
searchAndRedirect($notFoundPath, $articles);
searchAndRedirect(basename($notFoundPath), $articles);
}
http_response_code(404);
ob_start();