From 4acc1653d1379c7b6f75a4654d08e54eb969d57c Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Fri, 6 Sep 2024 17:42:06 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20error=E3=81=AE=E3=81=A8=E3=81=8D?= =?UTF-8?q?=E3=82=82index=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=86=E3=81=9F=E3=82=81error=E3=81=AE=E3=81=A8?= =?UTF-8?q?=E3=81=8D=E3=81=AE=E3=81=BF=E9=99=A4=E5=A4=96=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/infrastructure/springframework/SPAInterceptor.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/SPAInterceptor.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/SPAInterceptor.kt index 83df1836..b3a6eeb0 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/SPAInterceptor.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/SPAInterceptor.kt @@ -25,6 +25,10 @@ class SPAInterceptor : HandlerInterceptor { handler: Any, modelAndView: ModelAndView? ) { + if (modelAndView?.viewName == "error") { + return + } + if (request.session.getAttribute("s") == "f") { return }