JPressProjects / jpress

JPress,一个使用 Java 开发的建站神器,目前已经有 10w+ 网站使用 JPress 进行驱动,其中包括多个政府机构,200+上市公司,中科院、红+字会等。
http://www.jpress.cn
GNU Lesser General Public License v3.0
2.66k stars 1.18k forks source link

自定义域名时,从后台无法直接访问文章 #181

Open DevourZuan opened 1 year ago

DevourZuan commented 1 year ago

项目启动描述

使用tomcat8.5.42启动,启动配置访问路径为http://localhost:8080/blog/

问题描述

  1. 进入localhost:8080/blog/admin/index 面板页 ,点击右侧的文章
  2. 跳转到文章详情页localhost:8080/arcticle/c69589.html,网页报错404,发现并未拼接我们自定义的访问路径
  3. 将localhost:8080/arcticle/c69589.html改为localhost:8080/blog/arcticle/c69589.html,可以正常访问