Skip to content

Asset Linking Problems #19

@Nicko304

Description

@Nicko304

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:
image
Using the path ./assets/rotations.gif will show an image on our local IDE (as expected), but not appear on the website after deploying:
image
image
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!
image
Now a fix I found for now is to add the name of the lab into the relative path:
image
The image won't show on the local IDE anymore, but it will work on the website after deploying:
image
image

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?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions