{"action":"opened","issue":{"url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1111","labels_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1111/labels{/name}","comments_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1111/comments","events_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1111/events","html_url":"https://github.com/GitbookIO/gitbook/issues/1111","id":128406987,"number":1111,"title":"Relative image paths not working","user":{"login":"ralfw","id":132662,"avatar_url":"https://avatars.githubusercontent.com/u/132662?v=3","gravatar_id":"","url":"https://api.github.com/users/ralfw","html_url":"https://github.com/ralfw","followers_url":"https://api.github.com/users/ralfw/followers","following_url":"https://api.github.com/users/ralfw/following{/other_user}","gists_url":"https://api.github.com/users/ralfw/gists{/gist_id}","starred_url":"https://api.github.com/users/ralfw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralfw/subscriptions","organizations_url":"https://api.github.com/users/ralfw/orgs","repos_url":"https://api.github.com/users/ralfw/repos","events_url":"https://api.github.com/users/ralfw/events{/privacy}","received_events_url":"https://api.github.com/users/ralfw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-24T16:17:25Z","updated_at":"2016-01-24T16:17:25Z","closed_at":null,"body":"Here's a small book to illustrate relative image paths not working:\r\n\r\nhttps://www.gitbook.com/book/ralfw/test_imagepaths/details/de\r\n\r\nIt's a multi language book with de/ and en/ sub-directories and a LANGS.md file. That part is working very well.\r\n\r\nBut as you can imagine, I'd like to share images between the translations. I don't want to put images into each language's branch, but keep them as global resources to be linked to from each language.\r\n\r\nAs you can see, though, it's impossible to reference global images from .md files in sub-directories. Check out the two introductory pages of the book. Their paths are:\r\n\r\n/de/README.md\r\n/en/README.md\r\n\r\nand they are supposed to show the images located at\r\n\r\n/resources/images/*\r\n\r\n*It neither works with an absolute path nor a relative path like ../resources/images/kitten.jpg.*\r\n\r\nHowever, pointing down the branch is no problem. That's what the German translation does. It links to an image located in it's branch at /de/de_images/kitten2.png by just using a relative pathname: de_images/kitten2.png.\r\n\r\nRelative paths up the folder hierarchy (and then down again in a different branch) don't work in any of the generated books (web, pdf, epub, mobi). Interestingly, though, they work in the editor.\r\n\r\nIn my view this is a bug. It severely impedes writing multi language books, because it would require the author to duplicate images in every languge's branch leading to a maintenance nightmare if an image changed.\r\n\r\nPlease fix it. I'd like to see more kittens, ideally all of them. Don't you? ;-)\r\n\r\n-Ralf\r\n\r\n*Web-View of page:*\r\n\r\n<img width=\"200\" alt=\"bildschirmfoto 2016-01-24 um 17 13 16\" src=\"https://cloud.githubusercontent.com/assets/132662/12537377/0e484470-c2be-11e5-8918-e4945e906326.png\">\r\n\r\n*Editor-View of same page. See how the relative path is working:*\r\n\r\n<img width=\"600\" alt=\"bildschirmfoto 2016-01-24 um 17 14 02\" src=\"https://cloud.githubusercontent.com/assets/132662/12537380/161504fe-c2be-11e5-9fe3-ae63cda7a9f0.png\">\r\n"}}