MaggieAppleton / maggieappleton.com

⚠️ Now retired. My previous, poorly constructed digital garden built with Gatsby and MDX. Updated garden here: https://github.com/MaggieAppleton/maggieappleton.com-V2
https://maggieappleton.com
Other
161 stars 24 forks source link

Image Duplication on First Load #118

Closed MaggieAppleton closed 3 years ago

MaggieAppleton commented 3 years ago

When you navigate directly to a post from a link that contains many images (eg. https://maggieappleton.com/garden-history), some of the images are duplicated in places where they should not be.

It overrides the image URL declared in the MDX, and replaces it with a URL of another image from another part of the page.

This only occurs when you've never visited the site before, and you go directly to the post from a link. If you navigate to the post vias the homepage or /garden page, the issue doesn't occur.

Issue split off from #72

MaggieAppleton commented 3 years ago

Same issue is happening again on https://maggieappleton.com/nontechnical-gardening.

To recreate it, open the page in a private browse window and navigate directly to the page link. Last two images are duplicates of one of the further up ones. Navigating to home, and then back to the article page fixes it.

texastoland commented 3 years ago

Fixed by #122?

MaggieAppleton commented 3 years ago

Yup, fixed 👍