Skip to content

Commit

Permalink
feat(webserver): html-head don't work any more (#1489)
Browse files Browse the repository at this point in the history
close #1451
  • Loading branch information
jheinitz authored Jun 26, 2023
1 parent c30325f commit f241803
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions client/public/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="%PUBLIC_URL%/" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#33b5e5" />
<meta name="html-head" content="replace" />
<meta charset="utf-8">
<base href="%PUBLIC_URL%/">
<link rel="icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#33b5e5">
<meta name="html-head" content="replace">

<!--
The AKHQ_PREFIX_PATH placeholder magic value is replaced during serving by server
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/akhq/controllers/StaticFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Publisher<MutableHttpResponse<?>> doFilter(HttpRequest<?> request, Server
private String replace(String line) {
line = line.replace("./ui", (basePath == null ? "" : basePath) + "/ui");

line = line.replace("<meta name=\"html-head\" content=\"replace\" />", this.htmlHead == null ? "" : this.htmlHead);
line = line.replace("<meta name=\"html-head\" content=\"replace\">", this.htmlHead == null ? "" : this.htmlHead);

return line;
}
Expand Down

0 comments on commit f241803

Please sign in to comment.