DEVONthink Server web app (v4) fails to resolve relative image paths in indexed Markdown documents. When a Markdown note at anyfolder/note.md references , the browser requests http://server/image.jpg instead of resolving the path relative to the document’s location. Standard Markdown behavior would require serving the image at the document’s relative path.
Images added this way show just fine on DEVONthink 4 and DEVONthink To Go 4, just not in the web app.
How can I work around or fix this?
Here’s how I reference the image in markdown:
```
## Images

```
Thank you for the feedback! Does the Markdown document have a URL? Then this URL is used as the base URL for relative links. Therefore one option is to remove the URL, another one to use item links instead of relative URLs.
thanks for the info…
The Markdown document comes from a folder full of various snippets which I indexed in DT Pro Server. In DT and DT to go the images show fine, but not in the web-app.
I can’t use DT’s item links, because that would break the local file
Here’s the example (and a screenshot of the web-app).
Both images don’t show…
It’s not super-important, but it still would be good to get that working somehow…
Any info/idea appreciated.
tia
andy
aaa-test.md
---
tags:
- network/test/
category: "[[Testcat]]"
---
# This is a test
## Images


## Notes
I was able to reproduce this using indexed files, we’ll check this.
1 Like