Page 1 of 1

incorrect paths to image resources

Posted: 14 Aug 2020, 20:14
by jpraet
in D:\pandora-1.0.0\src\main\webapp\resources\sass\layout\_exception.scss:
background-image: url(/pandora/javax.faces.resource/images/pages/bg-page-404.jpg.xhtml?ln=pandora-layout);
background-image: url(/pandora/javax.faces.resource/images/pages/bg-page-access.jpg.xhtml?ln=pandora-layout);
background-image: url(/pandora/javax.faces.resource/images/pages/bg-page-error.jpg.xhtml?ln=pandora-layout);
in D:\pandora-1.0.0\src\main\webapp\resources\sass\layout\_landing.scss:
background-image: url(/pandora/javax.faces.resource/images/pages/landing/bg-tier-1.svg.xhtml?ln=pandora-layout);
background-image: url(/pandora/javax.faces.resource/images/pages/landing/bg-tier-2.svg.xhtml?ln=pandora-layout);
background-image: url(/pandora/javax.faces.resource/images/pages/landing/bg-tier-3.svg.xhtml?ln=pandora-layout);
in D:\pandora-1.0.0\src\main\webapp\resources\sass\layout\_login.scss:
background-image: url(/pandora/javax.faces.resource/images/pages/asset-loginbg.jpg.xhtml?ln=pandora-layout);
There are 2 problems with this:
* the .xhtml suffix should not be there
* but more importantly: this assumes that the context root of the application is /pandora/, which won't be the case in the client application

As far as I know, a correct way to reference the image resources is

Code: Select all

background-image: url(#{resource['pandora-layout:images/pages/bg-page-404.jpg']});
Kind regards,
Jimmy

Re: incorrect paths to image resources

Posted: 21 Aug 2020, 10:49
by mert.sincan
Thanks a lot for the reported issue! You're right! We'll fix them in the next version.

Best Regards,