Skip to content

Web IDE: Markdown preview fetches images from the wrong branch

Prerequisits

  • Create a new branch, this branch must not be the default branch
  • In the created branch create a new markdown file

In the WebIDE

  • Upload a picture in the created branch
  • Link the image in the markdown file for display
  • Commit the changes

Again in the WebIDE

  • Show the preview of the markdown file

Expectation

  • The image is displayed

The image is not displayed because the path to the image uses the path of the wrong branch. The path of the default branch is used and not the path of the current branch.

Screenshot_from_2018-11-22_11-24-09

Screenshot_from_2018-11-22_11-21-18

Edited by Himanshu Kapoor