From 54fe70d66244fbb35b37425736b60c8d66725da5 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Wed, 3 Dec 2025 09:22:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(nginx)=20fix=20/=20location=20to?= =?UTF-8?q?=20handle=20new=20static=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The / location is not trying the $uri/index.html file. We should try this instad of $uri/ because when a new static page is added, we always have this pattern. --- CHANGELOG.md | 4 ++++ src/frontend/apps/impress/conf/default.conf | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ffe077b..36af2298 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to - ♿(frontend) improve accessibility: - ♿(frontend) add skip to content button for keyboard accessibility #1624 +### Fixed + +- 🐛(nginx) fix / location to handle new static pages + ## [4.0.0] - 2025-12-01 ### Added diff --git a/src/frontend/apps/impress/conf/default.conf b/src/frontend/apps/impress/conf/default.conf index eb17e777..fecd0070 100644 --- a/src/frontend/apps/impress/conf/default.conf +++ b/src/frontend/apps/impress/conf/default.conf @@ -6,7 +6,7 @@ server { root /usr/share/nginx/html; location / { - try_files $uri index.html $uri/ =404; + try_files $uri index.html $uri/index.html =404; add_header X-Frame-Options DENY always; }