Skip to content

Commit cd7704f

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 3bf33d2 commit cd7704f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ and this project adheres to
1717

1818
⚡️(frontend) reduce unblocking time for config #867
1919

20+
## Fixed
21+
22+
- 🐛(nginx) fix 404 when accessing a doc #866
23+
2024
## [3.1.0] - 2025-04-07
2125

2226
## Added

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

Lines changed: 2 additions & 2 deletions
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-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/?$" {
13+
try_files $uri /docs/[id]/index.html;
1414
}
1515

1616
error_page 404 /404.html;

0 commit comments

Comments
 (0)