quartz icon indicating copy to clipboard operation
quartz copied to clipboard

Remove links for pages that don't exist

Open quantumgardener opened this issue 1 year ago • 9 comments

I believe it is bad design to link to pages that we know do not exist. It is ok to do with within Obsidian, but not on a public facing site. It goes against end user's expectations of clicking on a link and having it go where it suggests.

If I have [[Missing Link]] on a page, and have not provided "Missing Link.md" then when parsing the wikilinks, I would prefer to see no link, rather than a link which goes nowhere.

Simply put, iIf the target page of a wiki link from Obsidian is not in the list of known pages, do not link.

Some people may like this behaviour, so there could be options in the config,

  1. as currently works
  2. do not create link
  3. link, but with a css tag indicating the link is missing (Obsidian Publish) does this.

I've looked at the code but don't have the ability to work out exactly what change is required.

quantumgardener avatar Sep 05 '23 10:09 quantumgardener

If I have [[Missing Link]] on a page, and have not provided "Missing Link.md" then when parsing the wikilinks, I would prefer to see no link, rather than a link which goes nowhere.

Just want to confirm that not everyone would like this behavior!

Like you said, if such functionality is added it should be configurable!

thelulzy avatar Nov 16 '23 22:11 thelulzy

I agree this would be a really nice feature and much needed when you use a single vault for your public and private notes.

In addition to it being configurable, I think it would also be nice to be able to style those links differently, vs. removing the link in its entirety.

FabianUntermoser avatar Nov 18 '23 12:11 FabianUntermoser