Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How we can use image in email template in keycloak locally

Tags:

keycloak

<img src="${url.resourcesPath}/images/logo.png" />

Problem: Above code path is working in template.ftl but same thing not working in email template.

In email template we have try with various options but baseUrl and rootUrl also not coming there.

like image 242
Amin smartSense Avatar asked Sep 13 '25 13:09

Amin smartSense


1 Answers

if you have the next image path:

\themes\as2theme\login\resources\img\test.png

you can refer it from an image tag like this

<img src="${url.resourcesPath}/img/test.png"/>

also you can see this post: https://codehumsafar.wordpress.com/2018/09/21/keycloak-add-image-in-custom-theme/

like image 93
Pablo Caiza Avatar answered Sep 17 '25 20:09

Pablo Caiza



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!