Ver código fonte

Fix empty base path when forwarding to index page (#1874)

Signed-off-by: Roman Zabaluev <rzabaluev@provectus.com>

Co-authored-by: Ilya Kuramshin <ilia-2k@rambler.ru>
Roman Zabaluev 3 anos atrás
pai
commit
dbc5d0445c

+ 1 - 1
kafka-ui-api/src/main/java/com/provectus/kafka/ui/config/CustomWebFilter.java

@@ -16,7 +16,7 @@ public class CustomWebFilter implements WebFilter {
 
     final String path = exchange.getRequest().getPath().pathWithinApplication().value();
 
-    if (path.startsWith("/ui") || path.equals("/")) {
+    if (path.startsWith("/ui") || path.equals("") || path.equals("/")) {
       return chain.filter(
           exchange.mutate().request(
               exchange.getRequest().mutate()