Hi Andy, thank you for the reply. I successfully applied your suggestion.
The only difference is that I had to add the theme name in the th:replace tag instead of href <div th:replace="mytheme/fragments/loginform :: loginform"> <a href="fragments/loginform.html">Login Form goes here</a> </div> thanks again Michele On Wednesday, January 16, 2019 at 8:49:20 AM UTC+1, Andy Ng wrote: > > Hi Michele, > > For fragments, by default even if you are using theme, it will point to > the main fragment. > > This is because thymeleaf render path by attaching the path with the > prefix, instead of using the one in the theme directory. > > > Refering to: > https://github.com/apereo/cas/blob/v6.0.0/webapp/resources/templates/casLoginView.html > > As you can see, fragment is called like this: <a href=" > *fragments/cookies.html*">cookies fragment</a> > > Hence, even in themed login, it will still point to (in your case): > /etc/cas/templates/ + fragments/cookies.html = > /etc/cas/templates/fragments/cookies.html > > My current work around is only to add back the themed name to > casLoginView.html in the theme directory (e.g. <a href="*mytheme/* > *fragments/cookies.html*">cookies fragment</a> ), there might be ways to > make it modular but I am out of idea during that time. > > See if the above help you! > > > Cheers! > - Andy > -- - 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/0aafe1c5-23a2-41cb-8dd6-7a145d70cf29%40apereo.org.
