TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8.08k stars 1.19k forks source link

Doc: incorrect links of references to plugins #4175

Open chemacortes opened 5 years ago

chemacortes commented 5 years ago

Tiddlers about plugins use links with parts interchanged. It works in the web page, but fails when is using as a local archive.

For example, tiddler about KaTeX (https://tiddlywiki.com/#KaTeX%20Plugin) has this link:

[ext[https://tiddlywiki.com/plugins/tiddlywiki/katex|plugins/tiddlywiki/katex]]

It must be :

[ext[plugins/tiddlywiki/katex|https://tiddlywiki.com/plugins/tiddlywiki/katex]]

The list of tiddlers to change that I had detected: Filter: [search[|plugins/tiddlywiki]!is[system]]

Jermolene commented 5 years ago

Hi @chemacortes there's been some discussion about this in the past. There are conflicting views about the best default. People who have downloaded index.html from tiddlywiki.com expect the links to work by going back to the website, while people viewing a local copy of the repo expect the links to work locally. There's no obvious way to automatically adapt to the users preference.

pmario commented 3 years ago

As a user, I expect the link to work from tiddlywiki.com from localhost:// or file:// ...

Since [ext[https://tiddlywiki.com/plugins/tiddlywiki/katex|plugins/tiddlywiki/katex]] doesn't lead anywhere if clicked from a file:// or local uri the "link text is lying". .. It suggests, that it will open https:// but it doesn't.

For me that looks like a bug.

Jermolene commented 3 years ago

Hi @pmario yes, we had to choose between making things work when only when hosted on tiddlywiki.com, or making things work when also when hosted on tiddlywiki.com/prerelease (we had a number of complaints that the links didn't work in the prerelease).

The present arrangement doesn't work when running tiddlywiki.com offline, but maybe people doing so might be expected to understand how web links work.

I'm open to suggestions for alternative approaches