Skip to content

Commit

Permalink
Fix #2346
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Jul 28, 2022
1 parent bffe316 commit 6d2f41e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public String getRenderedIndexFile(ServerWebExchange exchange) {

@SneakyThrows
private String buildIndexFile(String contextPath) {
final String staticPath = contextPath + "/static";
final String staticPath = contextPath + "/";
return ResourceUtil.readAsString(indexFile)
.replace("href=\"./static", "href=\"" + staticPath)
.replace("src=\"./static", "src=\"" + staticPath)
.replace("window.basePath=\"\"", "window.basePath=\"" + contextPath + "\"");
.replace("href=\"/", "href=\"" + staticPath)
.replace("src=\"/", "src=\"" + staticPath)
.replace("window.basePath = \"\"", "window.basePath=\"" + contextPath + "\"");
}
}
6 changes: 3 additions & 3 deletions kafka-ui-react-app/public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "UI for Apache Kafka",
"icons": [
{
"src": "/favicon/icon-192.png",
"src": "./favicon/icon-192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "/favicon/icon-512.png",
"src": "./favicon/icon-512.png",
"type": "image/png",
"sizes": "512x512"
}
Expand All @@ -16,4 +16,4 @@
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
}

0 comments on commit 6d2f41e

Please sign in to comment.