I know this maybe a simple problem for some, but i really don´t know what´s the problem here. Inside a simple for loop i have this:
for (i = 0; i < r.foto.length; i++)
{
let slide = '<a href=../img/'+ r.foto[i] +'>' + '<img src=../img/thumb/'+ r.fotoThumbArray[i]+'>' + '</a>';
}
This is suppose to get photos that i have in my database, and the strange error that appears is in the console:
GET http://basedados.test/img/thumb/thumbqZSxpYVJevWz0PMR.jpeg%22 404 (Not Found)
I don´t understand why it appears that %22 in the end of the GET method, any guesses?
Regards
%22is". So, it sounds like you have an extra"in yourfoto[i]or in yourfotoThumbArray[i]. Mind logging the array and posting the result? Thanks.%22.r.foto.reduce((tmp, x, xi) => `<a href=../img/${x}><img src=../img/thumb/${r.fotoThumbArray[xi]}></a>`, '');