css - Adding image to header - is #{request.contextPath} returning contextname/faces instead of just contextname/? -
i attempting add image header of layoutunits (specifically layoutunit = north can work out). however, while works pages before login, stops working after login. wondering if reason because #{request.contextpath} returns
https://localhost:8181/contextname/faces instead of just:
https://localhost:8181/contextname/ or there other cause? more think it, more think else - can't think what. note style sheet below works 8080 , 8181 - that's not causing issue can tell.
here css modified - said, works outside of login, once logged in image fails appear.
<style type="text/css"> .ui-layout-unit-header{ background-image:url('#{request.contextpath}images/networkslogotoolbartransparent.gif') !important; background-repeat:no-repeat !important; background-size: contain !important; } </style> any appreciated.
aodhán
i have literally no idea why, if shed light on it, that'd great, reason adding / before images worked. wasn't necessary before logging in, logged in pages. so:
background-image:url('#{request.contextpath}/images/networkslogotoolbartransparent.gif') !important; instead of:
background-image:url('#{request.contextpath}images/networkslogotoolbartransparent.gif') !important; the examples saw didn't need slash, mine did.
Comments
Post a Comment