mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-07 09:18:06 +00:00
Make static links to tiddlers with spaces work
A bit of a hack - the savetiddlers command should generate filenames better
This commit is contained in:
@@ -70,6 +70,7 @@ LinkWidget.prototype.generate = function() {
|
||||
var wikiLinkTemplateMacro = this.renderer.findMacroDefinition("tw-wikilink-template"),
|
||||
wikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.text.trim() : "$uri_encoded$",
|
||||
wikiLinkText = wikiLinkTemplate.replace("$uri_encoded$",encodeURIComponent(this.to));
|
||||
wikiLinkText = wikiLinkText.replace("$uri_doubleencoded$",encodeURIComponent(encodeURIComponent(this.to)));
|
||||
this.attributes.href = wikiLinkText;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user