relative links can break with the external plugin #21

Closed
opened 2025-09-12 11:39:16 +00:00 by adina · 1 comment
Owner

Saving this from a PR comment from #18:

I want to note another thing I just noticed when stitching together a course: Relative links from slide decks within modules (e.g., dataset-production.html links to yoda.html) don't work anymore when they get "data-external(-replace)"-linked in a file within workshops/ - the paths simply do not resolve anymore. This is perfectly understandable, but how to circumvent it?

Its either:

no relative links to other slide decks
make the link absolute, e.g., by pointing to slides.edu.datalad.org
I'm leaning towards the former. That needs documentation.

Saving this from a PR comment from #18: I want to note another thing I just noticed when stitching together a course: Relative links from slide decks within modules (e.g., dataset-production.html links to yoda.html) don't work anymore when they get "data-external(-replace)"-linked in a file within workshops/ - the paths simply do not resolve anymore. This is perfectly understandable, but how to circumvent it? Its either: no relative links to other slide decks make the link absolute, e.g., by pointing to slides.edu.datalad.org I'm leaning towards the former. That needs documentation.
adina closed this issue 2025-09-12 13:11:55 +00:00
Owner

If I understand the issue correctly, ten it is caused by modules living in modules/ and all "entry point" documents in workshops/.

This means that relative links are OK, BUT they have to be relative assuming a starting point in workshops/ or another dir at that level, but not inside modules/.

If correct, this would mean that even within modules/ relative links can be relative, and point to other modules, but they need to have the pattern ../modules/...

If I understand the issue correctly, ten it is caused by modules living in `modules/` and all "entry point" documents in `workshops/`. This means that relative links are OK, BUT they have to be relative assuming a starting point in `workshops/` or another dir at that level, but not *inside* `modules/`. If correct, this would mean that even within `modules/` relative links can be relative, and point to other modules, but they need to have the pattern `../modules/...`
Sign in to join this conversation.
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
edu/slides#21
No description provided.