CMSgov / design-system

Open source design and front-end development resources for creating Section 508 compliant, responsive, and consistent websites.
https://design.cms.gov
Other
312 stars 85 forks source link

[NO-TICKET] Fix the bug caused by the first fix to Gatsby image paths #3183

Closed pwolfert closed 1 month ago

pwolfert commented 1 month ago

Summary

This is a follow-up to https://github.com/CMSgov/design-system/pull/3176, where I attempted to fix a bug and caused its equal and opposite bug. See added code comments for details.

How to test

I re-deployed this demo with the fix. Loading that page from the link should successfully show the image, and also navigating away through the "See other releases" link and then back using the "Release 11.0" link should show the image too. Without this fix, it would have failed to load the image in that second scenario, which was the opposite of what it was before the first fix.

Checklist