>> * This may have changed already, but it appears that when generating >> links to tiddlers the href is not getting an encodeURIComponent >> applied, thus [[foo bar]] becomes href="foo bar" where it presumably >> should be "foo%20bar". > > I'm mid horrendous refactoring, but have added a test for this.
I've realised that this is slightly more complicated than it first appears. I can't just encodeURIComponent every href, because then absolute URIs like "http://google.com/" would get converted. I guess the conversion isn't part of the translation to HTML so much as processing applied to a tiddler title to turn it into a URI. So, I think that the processing applied to the href needs to depend on the link. This could be done in the same way that I'm whacking in the appropriate classes on the links. So, the encodeURIComponent would be applied to tiddler links, with external links unmolested. Annoyingly, it piles more consequences on the logic I use to distinguish internal and external links. Best wishes Jeremy -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
