incorrect paths to image resources

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
jpraet
Posts: 3
Joined: 09 May 2013, 11:59

14 Aug 2020, 20:14

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

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

21 Aug 2020, 10:49

Thanks a lot for the reported issue! You're right! We'll fix them in the next version.

Best Regards,

Post Reply

Return to “Pandora - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest