Skip to content

Commit 64688df

Browse files
Fix gallery broken image path issue #4934 (#6175)
This PR updates the image paths in `GalleryPage.js` to use absolute URLs starting with `/autogen/0.2/img/...` so that images correctly load on GitHub Pages in the 0.2 documentation site. Fixes #4934
1 parent 0806b5d commit 64688df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/components/GalleryPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ const GalleryPage = (props) => {
7070
item.image
7171
? item.image.includes("http")
7272
? item.image
73-
: `/autogen/img/gallery/${item.image}`
74-
: `/autogen/img/gallery/default.png`
73+
: `/autogen/0.2/img/gallery/${item.image}`
74+
: `/autogen/0.2/img/gallery/default.png`
7575
}
7676
style={{
7777
height: 150,

0 commit comments

Comments
 (0)