eleventy-garden icon indicating copy to clipboard operation
eleventy-garden copied to clipboard

Can't link to notes homepage

Open binyamin opened this issue 4 years ago • 2 comments

Describe the bug

There's no way to link to the notes homepage (/notes/), via wikilinks.

link text href backlink?
notes /notes/notes yes
/ or /notes /notes/notes no
. or ./ n/a no

Expected behavior

In General: Links including filename, or a relative path to the file, should point to the specified file. Here: Accept / and ./ (relative paths), and notes (filename) for the link location.

binyamin avatar Oct 05 '20 16:10 binyamin

Hi, I'm not sure if this helps (I'm not very familiar with js), but I noticed that backlinks don't appear in case of folders inside the notes folders. For example:

/notes/Music/index.md /notes/Music/Production.md

Linking [[Music/Production.md]] in the index.m creates a clickable link on the Music index site, but the Production site won't show a backlink. However, linking [[Production]] in the index will create a non-clickable link on the Music site, but it will somehow create a backline on the Production site. Placing both links in the index will create both a clickable link, and a backlink on the Production site, but one of the links on the Music index site will not work. However, I'm finding that using [[Music/Production | Production]] and adding

'[comment]: # ([[Production]])'

(without the ') does both things. Is this just me not doing something right?

rhozacc avatar Dec 14 '20 21:12 rhozacc

@r357 no, you're doing the right thing. This is a bug. Would you mind opening an issue, so we can keep track of this?

binyamin avatar Dec 14 '20 21:12 binyamin