From fe9a137b780e198e89929acc68ba9d36c3aa8495 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Tue, 17 May 2022 11:00:20 +0800 Subject: [PATCH] =?UTF-8?q?bugfix----index=E8=B7=AF=E7=94=B1=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../anjiplus/template/gaea/business/filter/TokenFilter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/TokenFilter.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/TokenFilter.java index 642acddc..8022cf44 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/TokenFilter.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/TokenFilter.java @@ -85,7 +85,12 @@ public class TokenFilter implements Filter { return; } + if (SLASH.equals(uri) || SLASH.concat(BusinessConstant.SLASH).equals(uri)) { + if (BusinessConstant.SLASH.equals(uri)) { + response.sendRedirect("/index.html"); + return; + } response.sendRedirect(SLASH + "/index.html"); return; }