relative linking from project wiki to project: link to ordinary file works, link to image fails

Issue #12192 open
Tom Roche
created an issue

I have a repository for testing relative-link syntax @ https://bitbucket.org/tlroche/rst_link_test with a wiki @ https://bitbucket.org/tlroche/rst_link_test/wiki/Home . The filetree of the project (which includes its wiki) is

rst_link_test/README.rst
rst_link_test/file_in_project_root.txt
rst_link_test/images/Jen_Sorensen_PandP-poster-ForWeb.png
rst_link_test/subdir_level_1/file_in_folder_just_below_project_root.rst
rst_link_test/wiki/another_wikipage_in_top-level_folder.rst
rst_link_test/wiki/Home.rst
rst_link_test/wiki/subdir_level_2/wikipage_in_child_folder.rst

As shown @ rst_link_test/wiki/Home.rst

  1. Home>ordinary file: I can successfully link from rst_link_test/wiki/Home to an ordinary file in the project's ./subdir_level_1/ with ../src/HEAD/subdir_level_1/file_in_folder_just_below_project_root.rst
  2. Home>image>downloads: I can successfully {link to, display} an image in the parent project's Downloads from rst_link_test/wiki/Home with ../downloads/Jen_Sorensen_PandP-poster-ForWeb.png
  3. README>image>in project repo: several syntaxes work to allow this project's README to display a file in its ./images/
  4. Home>image>ordinary file: I cannot successfully {link to, display} an image in the project's ./images/ from rst_link_test/wiki/Home with ../src/HEAD/images/Jen_Sorensen_PandP-poster-ForWeb.png . In fact, I can't find any syntax that will allow a relative link from rst_link_test/wiki/Home to an image in rst_link_test/images/ .

But

  1. Both rst_link_test/subdir_level_1/ and rst_link_test/images/ are obviously peer directories/folders.
  2. rst_link_test/wiki/Home can display an image from its parent project's Downloads, so it's not like the wiki cannot display images outside its own pseudo-project.

So I assert that either (and this is a boolean or)

  1. The same relative-link syntax that works from a wiki file to an ordinary file in the wiki's parent project should work for image display.
  2. BB should enable some relative-link syntax to allow a wiki file to display an image in the wiki's parent project.

Comments (2)

  1. Log in to comment