It's been a while since I messed with this stuff, but did you remember to
update your custom casLoginView.html to use your custom layout.html by
changing the layout:decorate attribute of the html tag from ~{layout} to
~{cas-overlay/layout}?

--

DAVID A. CURRY, CISSP
*DIRECTOR • INFORMATION SECURITY & PRIVACY*
THE NEW SCHOOL • INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 646 909-4728 • [email protected]


On Tue, Aug 20, 2019 at 11:58 AM Pedro Rosas <[email protected]>
wrote:

> Hi all,
>
> I'm facing a weird issue on the URL calculation.
> I get different outputs for the same inputs...
>
> On my custom "casLoginView.html" I have the following image:
>
> *<img th:src="@{/themes/xpto/images/image.svg}"></img>*
>
>
> *On runtime this is replaced by:*
>
> *<img src="/prefix/themes/xpto/images/image.svg" />   -- This path doesn't
> exist... The correct one should be "/prefix/cas-overlay/themes/...."*
>
> ---------
>
> But... On my custom "layout.html" I also have an image:
>
> <img th:src="@{/themes/xpto/images/logo.svg}"></img>
>
> *But this one gets replaced by:*
>
> *<img src="/prefix//cas-overly/themes/xpto/images/*logo*.svg" />   -- The
> double '//' is a bad thing... but this version works correctly and gets the
> correct prefix **"/prefix/cas-overlay/themes/...."*
>
> *-----*
>
> Do you guys have any idea why the URL replacement logic is different?
> Why is the first one missing the "/cas-overlay" prefix?
>
>
> Thanks in advance.
> Best Regards,
>   Pedro Rosas
>
> --
> - 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/189e87ae-f5cf-4fa5-a0c5-8aed4fb49e4a%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/189e87ae-f5cf-4fa5-a0c5-8aed4fb49e4a%40apereo.org?utm_medium=email&utm_source=footer>
> .
>

-- 
- 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/CA%2Bd9XAMPQHADdOR_Y2pnCCp4aX8qC7aihYMU6BnHJ3dJWQWP6g%40mail.gmail.com.

Reply via email to