Introduce multiwikiclient plugin

Routes are now rationalised, too.
This commit is contained in:
Jeremy Ruston
2024-03-20 15:13:50 +00:00
parent 38ee942d8f
commit 9b3ca525ee
45 changed files with 679 additions and 166 deletions

View File

@@ -92,7 +92,7 @@ SqlTiddlerStore.prototype.processOutgoingTiddler = function(tiddlerFields,tiddle
});
if(attachment_blob !== null) {
delete fields.text;
fields._canonical_uri = `/wiki/${encodeURIComponent(bag_name)}/bags/${encodeURIComponent(bag_name)}/tiddlers/${encodeURIComponent(tiddlerFields.title)}/blob`;
fields._canonical_uri = `/bags/${encodeURIComponent(bag_name)}/tiddlers/${encodeURIComponent(tiddlerFields.title)}/blob`;
}
return fields;
};