Fossil Forum

chungy 3 weeks, 6 days ago

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.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button