This commit is contained in:
thinkgem
2024-05-27 15:30:14 +08:00
parent 5a4c03332a
commit 0a29bed4ad
2 changed files with 4 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ public class FrontController extends BaseController {
if (category.getHref().startsWith(request.getContextPath())) {
category.setHref(category.getHref().replaceFirst(request.getContextPath(), ""));
}
return "redirect:" + category.getHref();
return REDIRECT + category.getHref();
}
// 获取站点信息
@@ -269,7 +269,7 @@ public class FrontController extends BaseController {
if (article.getHref().startsWith(request.getContextPath())) {
article.setHref(article.getHref().replaceFirst(request.getContextPath(), ""));
}
return "redirect:" + article.getHref();
return REDIRECT + article.getHref();
}
model.addAttribute("article", article);