mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
avoid various HTTP server issues with slashes by putting notePath into the body with POST
This commit is contained in:
@@ -331,7 +331,7 @@ function addRecentNote(branchId, notePath) {
|
||||
setTimeout(async () => {
|
||||
// we include the note into recent list only if the user stayed on the note at least 5 seconds
|
||||
if (notePath && notePath === getCurrentNotePath()) {
|
||||
await server.put('recent-notes/' + branchId + '/' + encodeURIComponent(notePath));
|
||||
await server.post('recent-notes', { branchId, notePath });
|
||||
}
|
||||
}, 1500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user