The problem is cause by LiveJournal mangling the tag.url property. You can bypass this by constructing your own URL to reference tags:
var string url_base = $p.journal->base_url() + "/tag/";
Note that depending on where you are in the code, you may not have to reference $p (which assumes you are in the free text component and have been passed the page context via the $p variable) but something else (see Kunzite1's post on tags
for another example).
You then combine the url_base with the tag name to make the complete url:
Where $t refers to a variable of type TagDetail. Since the "name" property of the tag preserves the spaces, there is no problem with the URL.
Remember that there are different ways of displaying tags
. You can display them in entries, in a free text component, in a sidebar and as part of the new "tag page". Each one has its value, and you can use more than one!
I will post the free text component version again here to reduce email to the innocent user in the other post ;)( Collapse )