Browse Source

Update StaticController.java

Fixed basepath replacer
German Osin 4 years ago
parent
commit
723d552c23

+ 1 - 1
kafka-ui-api/src/main/java/com/provectus/kafka/ui/controller/StaticController.java

@@ -50,6 +50,6 @@ public class StaticController {
     return ResourceUtil.readAsString(indexFile)
         .replace("href=\"./static", "href=\"" + staticPath)
         .replace("src=\"./static", "src=\"" + staticPath)
-        .replace("window.basePath=\"/\"", "window.basePath=\"" + contextPath + "\"");
+        .replace("window.basePath=\"\"", "window.basePath=\"" + contextPath + "\"");
   }
 }