-1

I realize a catalog of products in flask + python; when I execute I don't have images of the products; and when I check behind the browser the code does generate the url of the image but with weird "%5C" characters instead of "/" (slash):

<img class="img-responsive lazyloarder lazyloarded" alt="" 
src="http://localhost:5000/static/placeholders%5Cbooks%5Cbook-05.jpg>

Can anyone help me?

Panagiotis Kanavos
  • 104,344
  • 11
  • 159
  • 196
  • 2
    Post your code. Where did that string come from? Post the actual code that created this. Parts of this string were URL-encoded but it's unclear why. Obviously `http://localhost:5000/static/placeholders` wasn't encoded. This means the two parts of the string came from different code – Panagiotis Kanavos May 18 '22 at 12:04
  • `%5C` is the html escape code for a backslash. Somewhere in your code you are trying to use a backslash as the separator between `placeholders books book-05.jpg` – John Gordon May 18 '22 at 12:06
  • Hi dear Gordon! Thank you very much for your lighting; I was using data imported into the database from github; Indeed the path of the images arrived with slashes (\); I made sql queries of the UPDATE type to correct these paths and replace the obliques (\) by slashes (/)! And now everything is working fine! Thanks for the help! – Junxpeter SKN May 19 '22 at 09:13

0 Answers0