Tiddlydesktop internal links failing to open in Tiddlydesktop and instead direct to browser

80 views
Skip to first unread message

Reece Shaw

unread,
May 12, 2019, 12:31:59 AM5/12/19
to TiddlyWiki
Hey Folks,

I've run into a strange issue when utilizing $wikify to render custom fields as formatted wikitext. The premise for the wiki design is to utilize a "UI" tiddler and a "data" tiddler. The UI controls/edits the data tiddler, after which point it can be used to display the data from the data tiddler in any format that I desire, based out of a pre-generated "form" template.

When using the following macro, opening the internally linked tiddlers directs the tiddlywiki file to be opened in my chrome browser instead of opening the expected tiddler.

\define testcon-display-block($field$)
<$wikify name="md" text={{!!$field$}} type="text/vnd.tiddlywiki" output="html" mode="block"><<md>></$wikify>
\end

I uploaded a video to show the behavior as well; additionally I've added the tiddlers in question, attached here.

Trying to understand why this only occurs in tiddlydesktop but works as expected in Chrome.

Thanks in advanced!

-Reece
$__world_SRD_macros_testcon-display-block.tid
display-testing-env.tid

Reece Shaw

unread,
May 12, 2019, 12:46:59 AM5/12/19
to TiddlyWiki

Mark S.

unread,
May 12, 2019, 9:44:42 AM5/12/19
to TiddlyWiki
Hi Reese,

What's missing from your test kit is a sample tiddler to be displayed.

It looks like it's opening an external link. Just that when you open an external link, and you're in your default Chrome browser, the behaviour is what you were expecting.

If you hover over the link and inspect element that might tell you if the link is external (or not -- that's why it would be useful to see a data tiddler).

Have fun!
-- Mark

Reece Shaw

unread,
May 12, 2019, 1:02:36 PM5/12/19
to TiddlyWiki
Ah yes I did, the sample can be created though by clicking edit at the top of the display-testing env tiddler, though. The syntax is simply using link brackets as expected for internal links.

What's strange is that when rendering the code that comes out via code block, it appears to be the same as how an internal link normally behaves. Using the altered macro:

\define testcon-display-block($field$)
<$wikify name="md" text={{!!$field$}} type="text/vnd.tiddlywiki" output="html" mode="block"><$codeblock
 code
=<<md>>/></$wikify>
\end

displays as:

<ul><li>text</li><li>test<ul><li><a class="tc-tiddlylink tc-tiddlylink-resolves" href="#test">test</a></li></ul></li></ul>

As far as I know this is how an internal link should look. I don't see anything unusual with the element inspector, so I'm really at a loss.

Attached the source data tiddler for reference as well.

Regards,

-Reece
display-testing-env.tid

Mark S.

unread,
May 12, 2019, 11:58:21 PM5/12/19
to TiddlyWiki
Playing with the macros, mostly removing line feeds, I could get two of them to work. But, only one would work, depending on the order in which it appeared, possibly.

Looking at rendered HTML, the code that worked did not have a <p> tag wrapped around the <a>...</a> tag set. I can only guess that the code used inside TD uses the CSS to
decide how to handle links (like a CSS selector). The code for two of the macros worked fine in FF, Waterfox, and Vivaldi. So it kind of looks like a bug in TD.

The macro that didn't work in a regular browser was <<testcon-display-block "text">>. In a regular browser, it did nothing. But at least it didn't try to open a new browser.

Reece Shaw

unread,
May 13, 2019, 6:48:59 PM5/13/19
to TiddlyWiki
Hoping for input from @jermolene if this is truly a tiddlydesktop bug I'd like to get it reported because this means there may be some issue with the compatibility of the wikify widget and tiddlydesktop.
Reply all
Reply to author
Forward
0 new messages