Skip to content

Commit 0d77b62

Browse files
committed
🐛(nginx) fix 404 when accessing a doc
We improve the nginx way to access to a specific doc. We stop to wait for a initial attempt that give a 404. If we see a UUID in the url we will redirect to the doc/[id] page. Next will then manage the 404.
1 parent ad11b7f commit 0d77b62

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to
88

99
## [Unreleased]
1010

11+
## Fixed
12+
13+
- 🐛(nginx) fix 404 when accessing a doc #866
14+
1115
## [3.1.0] - 2025-04-07
1216

1317
## Added

src/frontend/apps/impress/conf/default.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ server {
99
try_files $uri index.html $uri/ =404;
1010
}
1111

12-
location /docs/ {
13-
error_page 404 /docs/[id]/;
12+
location ~ ^/docs/[0-9a-fA-F-]+/?$ {
13+
try_files $uri /docs/[id]/index.html;
1414
}
1515

1616
error_page 404 /404.html;

0 commit comments

Comments
 (0)