-
Notifications
You must be signed in to change notification settings - Fork 101
Description
Hi Prashant Sir,
First of all, thank you so much for your amazing Node.js series!
While working on the views/store section, I noticed that in multiple files (around line 12), the image in the registered homes card is not rendering correctly.
img src="https://scontent.fdel15-1.fna.fbcdn.net/v/t1.6435-9/95996760_598694284095560_9178273974008676352_n.jpg?...&oe=673AC805" alt="<%= home.houseName %>" class="w-full h-48 object-cover"
Upon inspection, it appears that the URL used in the src attribute has a signed query string, which likely expired, resulting in a broken image link.
Instead of using a static external URL that might expire over time, it’s better to dynamically use a property like home.photoUrl, which can be assigned either from a valid image URL stored in the database or a placeholder fallback.
img src="<%= home.photoUrl %>" alt="<%= home.houseName %>" class="w-full h-48 object-cover"
This ensures the image displays correctly and is dynamically tied to each home object.
Let me know if you'd like me to send a PR for this fix too.