Skip to main content
Solved

How to set the BrowserIcon / Favicon


Harm Horstman
Superhero
Forum|alt.badge.img+21

 

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.

Best answer by Erik Brink

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

View original

Erik Brink
Moderator
Forum|alt.badge.img+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


Harm Horstman
Superhero
Forum|alt.badge.img+21

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


Erik Brink
Moderator
Forum|alt.badge.img+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.


Harm Horstman
Superhero
Forum|alt.badge.img+21

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?

 

 

 


Erik Brink
Moderator
Forum|alt.badge.img+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.


Harm Horstman
Superhero
Forum|alt.badge.img+21

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

 


Erik Brink
Moderator
Forum|alt.badge.img+5

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings