Static Export Leaves Stray HTML-escaped Percent Signs

I have been working on static exports for one of my wikis. I noticed that exporting with the static steps:

https://tiddlywiki.com/#Generating%20Static%20Sites%20with%20TiddlyWiki

This leaves escaped percent signs in names of files. You can see this on TiddlyWiki’s static site, too:

https://tiddlywiki.com/static/Future%2520Proof.html

This seems like a bug. I’d expect the above link to be

https://tiddlywiki.com/static/Future%20Proof.html

Has anyone encountered this, or a way to fix it?

Hi @Peter the double encoding is confusing.

The filename of the tiddler is actually just the URI encoded title of the tiddler. This is done to guarantee that the filename will be valid regardless of what characters are present in the tiddler title. The extra encoding comes when serialising the URI to text, which involves URI encoding it.

In other words, if the file on the server were called “alpha beta” (with a space in between) then the URI would include “alpha%20beta”. In our case, the filename is already URI encoded which gives us the doubling.

Makes sense - thanks Jeremy. That explains why titles with forward slashes get similarly escaped (so they can exist with reasonable names in the filesystem).