From f77314cb7671f5b849bd2c4431381ac1b9984bb1 Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 27 Nov 2020 14:37:14 -0500 Subject: Respect base URL in redirect --- lib/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/serve.js b/lib/serve.js index 50bfff2..a06f566 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -215,7 +215,7 @@ Serve.prototype.go = function () { var u = Url.parse(self.req.url) var q = u.query || (u.query = {}) q.published = publishedMsg.key - self.redirect(Url.format(u)) + self.redirect(self.app.render.toUrl(Url.format(u))) } } else { self.handle() -- cgit v1.2.3