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.
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