mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-29 17:08:01 +00:00
Temporary fix for link behaviour
There will soon be link massager plugins that apply this kind of processing
This commit is contained in:
@@ -56,6 +56,9 @@ exports.executeMacro = function() {
|
||||
linkInfo.attributes = {
|
||||
href: linkInfo.to
|
||||
};
|
||||
if(!linkInfo.isExternal) {
|
||||
linkInfo.attributes.href = encodeURIComponent(linkInfo.to);
|
||||
}
|
||||
// Generate the default classes for the link
|
||||
linkInfo.attributes["class"] = ["tw-tiddlylink"];
|
||||
if(linkInfo.isExternal) {
|
||||
|
Reference in New Issue
Block a user