This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new d6e79d4537 Adding a favicon to the Tomcat Manager webapp
d6e79d4537 is described below

commit d6e79d4537f13e8405340d8ffc64be2dab872c04
Author: sa103736 <xs...@users.noreply.github.com>
AuthorDate: Sun Jul 27 20:46:16 2025 -0400

    Adding a favicon to the Tomcat Manager webapp
    
    1. Tomcat Manager is sometimes run on server on which there is no ROOT 
context, therefore no default favicon is not found. This commits adds the 
tomcat favicon to the manager webapp directory and references it from the 
HTML_HEADER_SECTION in Constants.java
---
 java/org/apache/catalina/manager/Constants.java |   1 +
 webapps/manager/favicon.ico                     | Bin 0 -> 21630 bytes
 2 files changed, 1 insertion(+)

diff --git a/java/org/apache/catalina/manager/Constants.java 
b/java/org/apache/catalina/manager/Constants.java
index 97b7b759ef..b15a63fa60 100644
--- a/java/org/apache/catalina/manager/Constants.java
+++ b/java/org/apache/catalina/manager/Constants.java
@@ -36,6 +36,7 @@ public class Constants {
         HTML_HEADER_SECTION =
                 "<html>\n" +
                 "<head>\n" +
+                "<link href=\"{0}/favicon.ico\" rel=\"icon\" 
type=\"image/x-icon\" />\n" +
                 "<link rel=\"stylesheet\" href=\"{0}/css/manager.css\">\n";
 
         BODY_HEADER_SECTION =
diff --git a/webapps/manager/favicon.ico b/webapps/manager/favicon.ico
new file mode 100644
index 0000000000..6c5bd2c63b
Binary files /dev/null and b/webapps/manager/favicon.ico differ


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to