404 error in some cases

1 reply · opened Mar 4, 2020

GgorkemdurMar 4, 2020

Hi,

I noticed that if functions.js is called in sub directories, it fires 404 error for preloader.gif and blank.svg in some cases.

I found that the source urls are not formed relative to the root. You may consider to correct it in future releases.

Current code:
element.attr( 'src', 'images/blank.svg' ).css({ 'background': 'url(images/preloader.gif) no-repeat center center #FFF' });

Should be:
element.attr( 'src', '**/images/blank.svg' ).css({ 'background': 'url(/**images/preloader.gif) no-repeat center center #FFF' });

SSemicolon WebSTAFFMar 5, 2020

Hello,

Thanks for the Valuable Suggestion regarding this!

We will definitely try including this in the Future Updates.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard
404 error in some cases · Canvas Template Support