daniel-simpson / gatsby-source-confluence

7 stars 9 forks source link

Post Images Do Not Display In Pages #16

Open michaelmcnees opened 3 years ago

michaelmcnees commented 3 years ago

When importing pages from Confluence, image src URLs are formatted this way:

https://{ confluence URL }.atlassian.net/wiki/download/attachments/{ attachment id }/{ file name }?version={ version string }&modificationDate={ datestring }&cacheVersion={ cache version string }&api=v2

These URLs only work when viewed by an authenticated user and not when set as the src attribute on the img element of the page body. This does not happen with images that are hosted elsewhere and linked on a Confluence page, but that is not the default way to add an image to a page.

michaelmcnees commented 3 years ago

This is true for content in a private space. Public space images will load.