Favicon.ico

15 views
Skip to first unread message

Bengt Wällstedt

unread,
Mar 8, 2026, 6:49:28 PMMar 8
to SimpleSAMLphp
Hi!
We have a custom theme for things like colours and selectidp-links, the theme works exactly as it should. One thing remains unsolved, though: the favicon.ico. No matter how we try to pick the favicon.ico from the theme's /public/assets directory it just won't work and the default favicon.ico, the fish with bubbles, is shown on the browser tab.We could easily replace the favicon.ico where it is, in /var/simplesamlphp/public/assets/base/icons/ but we'd rather keep all the theming wthin the theme  We have tried a lot, any suggestion how to from within the theme make SimpleSAMLphp pick up the favicin.ico there instead of default location would be much appreciated!
Kind regards
Bengt Wällstedt

Peter Schober

unread,
Mar 9, 2026, 4:20:31 AMMar 9
to simple...@googlegroups.com
Bengt Wällstedt <bengt.w...@gmail.com> [2026-03-08 23:49 CET]:
> No matter how we try to pick the favicon.ico from the theme's
> /public/assets directory it just won't work and the default
> favicon.ico, the fish with bubbles, is shown on the browser tab.

You don't provide any detaiks but I don't see how SimpleSAMLphp could
prevent you from linking to a different file altogether?

<link rel="icon" type="image/png" href="your/path/to/someimage.png">

> We could easily replace the favicon.ico where it is, in
> /var/simplesamlphp/public/assets/base/icons/ but we'd rather keep
> all the theming wthin the theme

While not stricly "witin the theme" you could also redirect (or alias
or proxy) from /favicon.ico to your own version in the web server
configuration: That still leaves the SimpleSAMLphp distribution
unmodified and moves this change into server configuration territory.

HTH,
-peter

Tim van Dijen

unread,
Mar 18, 2026, 12:26:37 PMMar 18
to SimpleSAMLphp
Hey Bengt,

In your theme, you have to override the base-template. It should go here:
themes/<your theme>/default/base.twig

Just make a copy of the original base.twig and fix the link-tag to the favicon to point to your own.

- Tim

Op zondag 8 maart 2026 om 23:49:28 UTC+1 schreef bengt.w...@gmail.com:
Reply all
Reply to author
Forward
0 new messages