This commit is contained in:
Christian Müller
2015-10-18 18:53:28 +02:00
parent 929ab14a21
commit a0b4a55ffa
+1 -1
View File
@@ -54,7 +54,7 @@ app.post('/note', function (req, res) {
app.get("/:year/:month/:day/:title", function (req, res) {
var P = req.params, url = P.year + "/" + P.month + "/" + P.day + "/" + P.title;
storage.getNoteId(url).then(note => note ? res.redirect("/" + id) : notFound(res));
storage.getNoteId(url).then(note => note ? res.redirect("/" + note.id) : notFound(res));
});
app.get(/\/([a-z0-9]+\/edit)/, function (req, res) {