This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

Concatenating variables to create a URL

21st October 2025 at 2:27pm

Concatenating strings and variables to create a URL

<$let hash={{{ [<currentTiddler>encodeuricomponent[]] }}}>
<a href=`http://tiddlywiki.com/#$(hash)$`>this tiddler on tiddlywiki.com</a>
</$let>

That renders as:

this tiddler on tiddlywiki.com

... and the underlying HTML is:

<p>
<a href="http://tiddlywiki.com/#Concatenating%20variables%20to%20create%20a%20URL">this tiddler on tiddlywiki.com</a>
</p>

See: Substituted Attribute Values