-
Notifications
You must be signed in to change notification settings - Fork 0
Description
We've had reoccurring problems this semester where images and other linked asset paths won't properly show on labs and sometimes, homeworks.
Here's an example of the bug with this file structure:

Using the path ./assets/rotations.gif will show an image on our local IDE (as expected), but not appear on the website after deploying:


Interestingly if you open the dead image's link, the link is https://bytes.usc.edu/cs104/labs/assets/rotations.gif. But the markdown file lives in labs/avl_lab!

Now a fix I found for now is to add the name of the lab into the relative path:

The image won't show on the local IDE anymore, but it will work on the website after deploying:


Obviously this isn't ideal and can be confusing to professors and staff. Considering we didn't have this issue in the past, my guess it has something to do with Professor Goodney changing the host directory of the site on the bytes server back in January 2024, which was to fix deployment issues at the time (or maybe we need a simple restart?).