andrewg_oz
unread,Dec 8, 2007, 10:11:45 AM12/8/07Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TiddlyWikiDev
I've just discovered a bug relating to tiddlers with commas in their
name.
A tiddler with a name like "Test,Name" will get a permalink "Test
%2CName". That's fine. The problem is when you go to that permalink
TiddlyWiki looks for "Test%2CName" instead of "Test,Name".
The reason is because config.commands.permalink.handler uses
encodeURIComponent, while getParameters uses decodeURI (without the
Component). For some reason the -Component pair of functions process
commas (and possibly other characters) while the non-Component pair
don't.
The fix is to ensure these two bits of code both use the same
Component/non-Components pairs of encodeURI/decodeURI. I don't know
which is best, so I'll leave that decision to more knowledgeable
people...