Solved

How to set the BrowserIcon / Favicon

  • 26 May 2020
  • 7 replies
  • 174 views

Userlevel 5
Badge +20

 

In earlier releases of the WebGUI I was able to change the BrowserIcon by simply replacing the favicon.ico file in the images folder. For some reason this is not working anymore.

 

 

What is the right way to let it work? The documentation is not very clear on this.

icon

Best answer by Erik Brink 27 May 2020, 11:14

View original

7 replies

Userlevel 5
Badge +5

Hi Harm,

Best way to set your own icon for this is by setting the ini file setting: BrowserIcon

The value may contain an absolute path to a network location, which the IIS Application pool could read from, or a relative path. In case of a relative path the icon should be placed inside the `App_LocalResources` directory within the Web GUI directory.

This also saves you one deployment step when replacing the GUI with a new version.

I hope this answers your question.

 

Regards, Erik

Userlevel 5
Badge +20

Erik, 

Thank you!

Could you add an example for relative path with a favicon file in subfolder?

Maybe an idea, to put this in the documention.

BR,

Harm

Userlevel 5
Badge +5

Just use something like this:

BrowserIcon = icons/favicon.ico

 

Where the icon is placed here:

<web GUI directory>/App_LocalResources/icons/

 

Notice that the added support for relative paths for this kind of settings since GUI version: 2019.2.14.

Userlevel 5
Badge +20

Erik,

It seems to be simple, but I am still having difficulties, to get it work.

 

 

settings.ini:

BrowserIcon = Applications/STT/favicon.ico

What am I doing wrong?

 

 

 

Userlevel 5
Badge +5

It might be browser caching. My experience is that some browsers use very effective ways to remain the favicon once it is loaded once.

Seems like you configured everything right.

Maybe pick another type of browser for the test or a PC which didn't accessed the application yet? Maybe change the filename to trigger the browser to refresh it?

Please let me know if this resolves your problem.

Userlevel 5
Badge +20

Erik,

You were right, the caching mechanism of the browser caused the problem. 

For Google Chrome this problem was solved by following steps:
1. Hover over tab
2. Right Click
3. Select Reload

 

Userlevel 5
Badge +5

From version 2021.1.10, the Web GUI also listens to Global settings->Application Icon, which is stored in the IAM database.

Reply