Skip to content

Image URL Not Working Due to Expired Signature in Registered Homes Card #2

@ashum9

Description

@ashum9

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions