fix(inspirations): 灵感页 - 修复刷新重定向与面包屑标题 (#731)

This commit is contained in:
Yang authored and GitHub committed 2026-10-11 22:02:37 +08:00
1 parent 4f183674d5
commit 74eb83e92a
4 files changed
+21 -1

No files matched your search

+10 -1
View File
@@ -16,7 +16,7 @@ server {
client_max_body_size 1024m;
access_log /var/log/nginx/access.log canvas_no_query;
add_header Referrer-Policy "no-referrer" always;
# Also covers exact SPA aliases (/canvas, /assets, /welcome).
# Also covers exact SPA aliases (/canvas, /assets, /welcome, /inspirations).
add_header Cache-Control "no-cache, must-revalidate" always;
gzip on;
gzip_comp_level 5;
@@ -158,6 +158,15 @@ server {
try_files /index.html =404;
}
# /inspirations 同时是 React 路由和灵感 JSON 目录;页面入口不能按静态目录重定向。
location = /inspirations {
try_files /index.html =404;
}
location = /inspirations/ {
try_files /index.html =404;
}
location / {
try_files $uri $uri/ /index.html;
}