mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 08:45:50 +01:00
avoid various HTTP server issues with slashes by putting notePath into the body with POST
This commit is contained in:
@@ -4,8 +4,8 @@ const optionService = require('../../services/options');
|
||||
const RecentNote = require('../../entities/recent_note');
|
||||
|
||||
async function addRecentNote(req) {
|
||||
const branchId = req.params.branchId;
|
||||
const notePath = req.params.notePath;
|
||||
const branchId = req.body.branchId;
|
||||
const notePath = req.body.notePath;
|
||||
|
||||
await new RecentNote({
|
||||
branchId: branchId,
|
||||
|
||||
Reference in New Issue
Block a user