-
Notifications
You must be signed in to change notification settings - Fork 26
Description
bafybeiaq3hivs5tldezxg33j476ftbc5vxalhpdu3fuj5pyz27qyagcwhq is a folder containing 10 subfolders, each of which is a static archive of MIT OpenCourseware material. There is no index.html in the root, but there is in each subfolder.
When I load one of the subfolder sites in the w3s gateway, the CSS doesn't load, and the links don't work: https://bafybeiaq3hivs5tldezxg33j476ftbc5vxalhpdu3fuj5pyz27qyagcwhq.ipfs.w3s.link/18-s191-introduction-to-computational-thinking-fall-2020
However, CSS and links work correctly on the dweb.link gateway: https://bafybeiaq3hivs5tldezxg33j476ftbc5vxalhpdu3fuj5pyz27qyagcwhq.ipfs.dweb.link/18-s191-introduction-to-computational-thinking-fall-2020/
I think this is because they are relative links in the HTML, and the w3s gateway is interpreting that as relative to the root, rather than relative to the subfolder. For example, when I click on the syllabus link in the w3s gateway, I get directed to https://bafybeiaq3hivs5tldezxg33j476ftbc5vxalhpdu3fuj5pyz27qyagcwhq.ipfs.w3s.link/pages/syllabus/index.html, which doesn't exist.
But in the dweb.link gateway the same link takes me to https://bafybeiaq3hivs5tldezxg33j476ftbc5vxalhpdu3fuj5pyz27qyagcwhq.ipfs.dweb.link/18-s191-introduction-to-computational-thinking-fall-2020/pages/syllabus/index.html, which is the correct path.
That path does exist on the w3s gateway, so if it was linked to correctly the site would work as expected: https://bafybeiaq3hivs5tldezxg33j476ftbc5vxalhpdu3fuj5pyz27qyagcwhq.ipfs.w3s.link/18-s191-introduction-to-computational-thinking-fall-2020/pages/syllabus/index.html, and weirdly enough the CSS loads fine there.