Favicon.ico file location (when building CAS 5.2.x with Maven)

211 views
Skip to first unread message

Paul Chauvet

unread,
May 9, 2018, 4:00:41 PM5/9/18
to cas-...@apereo.org

Hi all,

 

Forgive me if this is a stupid question – but I can’t find where to place the favicon.ico file on CAS (with a custom theme).

 

Where (presumably somewhere within the src directory before building with maven) should the file be placed?

 

Thanks in advance all!

 

Paul Chauvet

Information Security Officer

State University of New York at New Paltz

845-257-3828

chau...@newpaltz.edu

emlogo

 

David Curry

unread,
May 9, 2018, 4:17:46 PM5/9/18
to cas-...@apereo.org
Unless told otherwise by a <link> tag, browsers expect favicon.ico to be at the document root ("/"). That's WEB-INF/classes/static, so I believe you should put it in src/main/resources/static/favicon.ico.

I think.

I ended up doing a custom template as well as a custom theme, so I just used a <link> tag in the layout.html file to put the favicon (and the stupid apple-touch-icon) in the "images" directory along with everything else.



--

DAVID A. CURRY, CISSP
DIRECTOR OF INFORMATION SECURITY
INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728david...@newschool.edu

The New School


--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/SN1PR20MB2141082E216A50198E1C1371A7990%40SN1PR20MB2141.namprd20.prod.outlook.com.

Reply all
Reply to author
Forward
0 new messages