-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative image/attachement links #163
Comments
Ok, after thinking about it a bit here is what I think happens: Otterwiki just pastes the link form the image link into an image tag. So we get
This assumes it is in the same directory, so if this is on page This probably means it is not supposed to work in either. And while a relative link |
Hey @Kilidsch, thank you for bringing this up. It would be nice to be able to reference attachments not with the full path, e.g. ![](/Example/a/example.png) but relative: ![](example.png) or ![](./example.png) Currently the renderer knows nothing about the path of the page it's rendering, will have to look into it to find a nice solution. |
…to the page. This was brought up in #163.
Released in v2.8.0. |
…to the page. This was brought up in redimp#163.
Hey,
Otterwiki seems like a great project and we want to switch to it from our old wiki.
During the switch I noticed something:
In the preview, relative links to images worked, i.e. if I upload an image as an attachement for a page and add a relative image-link, the image is displayed correctly. On the finished page, the image is not displayed. To be displayed on the finished page, an absolute link is required.
So the question: Are relative links to attachements supposed to work?
The text was updated successfully, but these errors were encountered: