diff options
author | Christoph (Sheogorath) Kern | 2019-04-05 13:49:28 +0200 |
---|---|---|
committer | GitHub | 2019-04-05 13:49:28 +0200 |
commit | ee725dc58c89f1d9662f14a791a34cc93e2409ff (patch) | |
tree | c1c342e321900a7031e0347611ee1f850cb89089 /lib/response.js | |
parent | fdd912d23a87fc1a405d5ff3767f142569f0ec3d (diff) | |
parent | afc8541c867a42d912c91495c9336a4032c3fadd (diff) |
Merge pull request #37 from stragu/patch-1
change default mode to "both" when clicking edit
Diffstat (limited to '')
-rw-r--r-- | lib/response.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/response.js b/lib/response.js index 76793a46..9fc9258c 100644 --- a/lib/response.js +++ b/lib/response.js @@ -427,7 +427,7 @@ function publishNoteActions (req, res, next) { actionDownload(req, res, note) break case 'edit': - res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id))) + res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id)) + '?both') break default: res.redirect(config.serverURL + '/s/' + note.shortid) @@ -441,7 +441,7 @@ function publishSlideActions (req, res, next) { var action = req.params.action switch (action) { case 'edit': - res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id))) + res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id)) + '?both') break default: res.redirect(config.serverURL + '/p/' + note.shortid) |