From edb5f03956377c9a5e043cd578c96a3868b037f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9drix?= Date: Thu, 14 May 2026 23:45:24 +0200 Subject: [PATCH 1/3] =?UTF-8?q?fix=20#61=20:=20afficher=20les=20r=C3=A9sul?= =?UTF-8?q?tats=20de=20recherche=20au=20lieu=20de=20rediriger=20vers=20le?= =?UTF-8?q?=201er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remplace la redirection 301 vers le premier résultat par une redirection 302 vers /search?q=... pour laisser l'utilisateur choisir parmi les résultats. Co-Authored-By: Claude Sonnet 4.6 --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index b5cfadd..1a0bdcf 100644 --- a/public/index.php +++ b/public/index.php @@ -68,7 +68,7 @@ function searchAndRedirect(string $rawPath, ArticleManager $articles): void )); $results = (new SearchEngine())->search($query, $pool); if (!empty($results)) { - header('Location: /post/' . rawurlencode($results[0]['article']['slug'] ?? ''), true, 301); + header('Location: /search?q=' . urlencode($query), true, 302); exit; } } From dbb4684d7c7c97307db678cefab9f39d053f6d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9drix?= Date: Thu, 14 May 2026 23:46:32 +0200 Subject: [PATCH 2/3] chore : version 1.3.0 + CHANGELOG (#61) Co-Authored-By: Claude Sonnet 4.6 --- CHANGELOG.md | 7 +++++++ public/version.txt | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9960b0d..6f09baa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,13 @@ Format : [Keep a Changelog](https://keepachangelog.com/fr/1.0.0/) — versionnag --- +## [1.3.0] - 2026-05-14 + +### Amélioré +- URL introuvable : redirige vers la page de recherche (`/search?q=…`) au lieu du premier résultat (#61) + +--- + ## [1.2.1] - 2026-05-14 ### Corrigé diff --git a/public/version.txt b/public/version.txt index 6085e94..f0bb29e 100644 --- a/public/version.txt +++ b/public/version.txt @@ -1 +1 @@ -1.2.1 +1.3.0 From d6b75d44e3e26c59585306cf1fc4f6e632839783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9drix?= Date: Thu, 14 May 2026 23:47:04 +0200 Subject: [PATCH 3/3] chore : version 1.2.2 + CHANGELOG (#61) Co-Authored-By: Claude Sonnet 4.6 --- CHANGELOG.md | 4 ++-- public/version.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f09baa..83086c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,9 @@ Format : [Keep a Changelog](https://keepachangelog.com/fr/1.0.0/) — versionnag --- -## [1.3.0] - 2026-05-14 +## [1.2.2] - 2026-05-14 -### Amélioré +### Corrigé - URL introuvable : redirige vers la page de recherche (`/search?q=…`) au lieu du premier résultat (#61) --- diff --git a/public/version.txt b/public/version.txt index f0bb29e..23aa839 100644 --- a/public/version.txt +++ b/public/version.txt @@ -1 +1 @@ -1.3.0 +1.2.2