Closed brownsarahm closed 1 year ago
The reason why this was not caught is because instructor pages live inside of the instructor/
subfolder, which only copies the HTML pages, not the assets. Images are accurately rendered because we have a function that takes the images from the HTML and adds a backtrace to the path:
However, I did not go further with internal links because that ended up always taking people outside of instructor mode, but I could explicitly filter for relative links that are not HTML.
And yes, I am embarrased by the dead code inside that function.
When we include images, we can use the relative path and sandpaper turns it into the correct path after building: https://preview.carpentries.org/instructor-training/fig/mental_models.svg,
but when we have links in an instructor note, it turns relative paths into:
when the correct path should be:
this is the underlying cause of: https://github.com/carpentries/instructor-training/issues/1501