CAS 5.1.5 Login View Title

229 views
Skip to first unread message

Mac Reid

unread,
Dec 13, 2017, 11:43:57 AM12/13/17
to CAS Community
Hi all,

I am trying to modify the HTML title of the default theme. I have added a custom messages file (src/main/resources/custom_messages.properties) with a modified cas.login.pagetitle, but the title of the page shows up as My String - CAS - Central Authentication Service.

I then modified the default fragment for the header (src/main/resources/templates/fragments/head.html) to not insert a value to the title (comment out <title th:insert="::title">CAS - Central Authentication Service</title> or set the inner string to something else). The page title still shows the - CAS - Central Authentication Service string regardless.

Lastly, even when setting the title element in the casLoginView.html itself, the resulting page still shows the - CAS - Central Authentication Service string after rebuilding the WAR. I have tried emptying my browser cache between attempts to no avail.

How do I get rid of the '- CAS - Central Authentication Service' addition to the page title?

Thanks,

Mac Reid

Pavlos Drandakis

unread,
Dec 13, 2017, 12:51:40 PM12/13/17
to cas-...@apereo.org

Hi Mac,

I think that you have to change the title element in classes/templates/layout.html...

Cheers,

Pavlos

--
- 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+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/cdaea65b-8b10-4885-8a43-aea14bac5e07%40apereo.org.

Mac Reid

unread,
Dec 13, 2017, 1:40:47 PM12/13/17
to cas-...@apereo.org
Hi Pavlos,

That worked! I appreciate the help.

Thanks,

Mac Reid
Reply all
Reply to author
Forward
0 new messages