Skip to content

BUG: Custom Favicons not working #1730

@Stjubit

Description

@Stjubit

Description

In web.conf, you can configure Splunk to use a custom favicon:

customFavicon = <pathToMyFile, myApp:pathToMyFile, or blank for default>
* Customizes the favicon image across the entire application.
* If no favicon image file, the favicon default: the Splunk favicon.
  * Supported favicon image files are .ico files, and should be square images.
  * Place the favicon image file in the default or manual location:
    * Default destination folder: $SPLUNK_HOME/etc/apps/search/appserver/static/customfavicon.
      * Example: If your favicon image is located at $SPLUNK_HOME/etc/apps/search/appserver/static/customfavicon/favicon.ico, set 'customFavicon' to "customfavicon/favicon.ico".
    * Manual location: Place the file in $SPLUNK_HOME/etc/apps/<myApp>/appserver/static/<pathToMyFile>, and set 'customFavicon' to
    "<myApp:pathToMyFile>".
* Default: not set, Splunk Web uses the Splunk favicon.

Add-ons built with UCC currently do not support this custom favicon, because the HTML files do not render it.

This is what is missing (for example in base.html)

  1. Import the util package: from splunk.appserver.mrsparkle.lib import util
  2. Render the favicon in <head>: <link rel="shortcut icon" href="${util.getFaviconURL()}" />

What UCC version are you using?

5.63.0

Additional System Info

Linux

Metadata

Metadata

Labels

bugSomething isn't workingtriagePending triage from maintainers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions