mirror of https://github.com/halo-dev/halo
![]() #### 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 https://github.com/halo-dev/halo/issues/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 修复页面取消发布后访问仍然出现页面未找到错误。 ``` |
||
---|---|---|
.. | ||
src | ||
build.gradle |