Incorrect loginpageillust referenced in layout.

Locked
diablillo
Posts: 2
Joined: 10 Oct 2011, 01:21

22 Oct 2015, 09:02

Dear Primefaces Friends,

There is a bug in the Spark Layout, pages login.xhtml, error.xhtml and 404.xhtml.

Code: Select all

<div class="other-pages-box Container40 Responsive50 MarAuto Fnone TexAlCenter ShadowGray MarTop10"
     style="margin-top:5%; background-image:url(/spark/resources/spark-layout/images/loginpageillust.svg); 
     background-repeat:no-repeat; background-position:center; background-size:cover;">
The background image URL is referencing the absolute URL /spark/, which causes the image to not be found if the context path is different from that.


Probable fix:

Code: Select all

            
<div class="other-pages-box Container40 Responsive50 MarAuto Fnone TexAlCenter ShadowGray MarTop10"
                 style="margin-top:5%; background-image:url('#{facesContext.externalContext.requestContextPath}/resources/spark-layout/images/loginpageillust.svg'); background-repeat:no-repeat; background-position:center; background-size:cover;">

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

22 Oct 2015, 09:22

Thank you, Diablillo. We will add this code in next release;

Code: Select all

 <div class="other-pages-box Container40 Responsive50 MarAuto Fnone TexAlCenter ShadowGray MarTop10"
                 style="margin-top:5%; background-image:url(#{resource['spark-layout:images/loginpageillust.svg']}); background-repeat:no-repeat; background-position:center; background-size:cover;">

Locked

Return to “Spark”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests