Skip to content

BUG: Custom Favicons not working #1730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Stjubit opened this issue May 7, 2025 · 1 comment
Open

BUG: Custom Favicons not working #1730

Stjubit opened this issue May 7, 2025 · 1 comment
Assignees
Labels
bug Something isn't working triage Pending triage from maintainers

Comments

@Stjubit
Copy link

Stjubit commented May 7, 2025

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

@Stjubit Stjubit added bug Something isn't working triage Pending triage from maintainers labels May 7, 2025
@soleksy-splunk
Copy link
Contributor

Thank you for raising that one up, we will try to pick it up as soon as possible and let you know here.

@soleksy-splunk soleksy-splunk self-assigned this May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Pending triage from maintainers
Projects
None yet
Development

No branches or pull requests

2 participants