You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### What type of PR is this?
/kind bug
/area core
/milestone 2.8.x
#### What this PR does / why we need it:
- Remove route when single pages become unpublished
- Add some unit tests against the change.
#### Which issue(s) this PR fixes:
Fixes#4309
#### Special notes for your reviewer:
1. Create a single page with slug name `about.html` and publish it.
2. Create a static file `about.html` into static folder`${halo.work-dir}/static/`.
3. Try to request <http://localhost:8090/about.html> and check the result.
4. Unpublish the single page and then do the step 3 again.
#### Does this PR introduce a user-facing change?
```release-note
修复页面取消发布后访问仍然出现页面未找到错误。
```
是什么版本出现了此问题?
v2.8.0-rc.1
使用的什么数据库?
PostgreSQL
使用的哪种方式部署?
Docker Compose
在线站点地址
No response
发生了什么?
问题描述:
test.html
文件,访问/test.html
地址,可以正常显示文件内容;test.html
;/test.html
地址,页面内容变为上一步创建的页面;/test.html
地址,返回 404 页面。取消发布页面后,访问
/test.html
地址应该可以返回静态资源目录test.html
的内容。相关日志输出
No response
附加信息
No response
The text was updated successfully, but these errors were encountered: