From 3539dd90cdc95a1b69fccfa351f5729b18ad3da1 Mon Sep 17 00:00:00 2001 From: Utkarsh Shukla Date: Mon, 21 Oct 2024 10:49:07 +0530 Subject: [PATCH] trailingSlash --- .../com/netflix/spinnaker/gate/config/GateWebConfig.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/config/GateWebConfig.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/config/GateWebConfig.groovy index 4fb72e131d..000d2f4209 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/config/GateWebConfig.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/config/GateWebConfig.groovy @@ -48,6 +48,7 @@ import org.springframework.web.bind.annotation.ExceptionHandler import org.springframework.web.bind.annotation.ResponseBody import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer import org.springframework.web.servlet.config.annotation.InterceptorRegistry +import org.springframework.web.servlet.config.annotation.PathMatchConfigurer import org.springframework.web.servlet.config.annotation.ViewControllerRegistry import org.springframework.web.servlet.config.annotation.WebMvcConfigurer import org.springframework.web.servlet.handler.HandlerMappingIntrospector @@ -198,4 +199,9 @@ public class GateWebConfig implements WebMvcConfigurer { registry.addViewController("/login").setViewName("ssd-login") } } + + @Override + public void configurePathMatch(PathMatchConfigurer configurer) { + configurer.setUseTrailingSlashMatch(true); + } }