RenderCommand: internal links incorrect

44 views
Skip to first unread message

Louis Davout

unread,
May 29, 2021, 10:25:36 AM5/29/21
to TiddlyWiki

I have TW 5.1.23 running on node. I'm exporting to static html using the RenderCommand:

tiddlywiki --render [!is[system]] "[encodeuricomponent[]addsuffix[.html]]"

The internal links generated still have the # like an achor tag. Ex:

In topicA I have a link to topicB ([[topicB]] the html generated for topicA has

<a class="tc-tiddlylink tc-tiddlylink-resolves" href="#topicB">topicB</a>

How can I get the links to point to the files?

<a class="tc-tiddlylink tc-tiddlylink-resolves" href="#topicB.html">topicB</a>

Thanks.
Message has been deleted

Louis Davout

unread,
May 30, 2021, 9:23:37 AM5/30/21
to TiddlyWiki
OK I got the links to work by following https://www.didaxy.com/exporting-static-sites-from-tiddlywiki-part-1 and using the deprecated RenderTiddlersCommand not sure yet if it's because of the parameters or the command itself. Looking further into it.

Louis Davout

unread,
May 30, 2021, 9:39:50 AM5/30/21
to TiddlyWiki
Should anyone in the future come across this. Apparently you can use the RenderCommand to generate static html which have working internal links using using render-type of text/plain and $:/core/templates/static.tiddler.html (I don't know if it works with any other template.)

tiddlywiki --render [!is[system]] "[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]" text/plain "$:/core/templates/static.tiddler.html"
Reply all
Reply to author
Forward
0 new messages