Fossil Forum
Post: Links in Markdown documents point to wrong paths in /dir view
Just a little test run to demonstrate the problem:
$ mkdir /tmp/t && cd /tmp/t $ fossil new ../t.fsl && fossil open ../t.fsl $ cat > README.md <<EOF [Link](document.md) EOF $ cat > document.md <<EOF Lorem ipsum dolor sit amet. EOF $ fossil add . && fossil commit -m Test
Run fossil ui, and in /setup_config, set the index page to /doc/trunk/README.md. From here, the home page of the repository will properly display the README file with a link to document.md.
On the Files page (/dir?ci=tip), the same README text will display, but the link goes to document.md and will generate a 404 error. There is no actual behavioral difference between the two pages for how it generations the HTML <a href="...> tag, but in the file view, the browser is not in the proper directory structure to actually link to what is expected.